inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

hbm2ddl 를 이용해 테이블 생성시 컬럼 순서 수정 방법

해결됨

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

안녕하세요? 영한님? 질문있어 문의드립니다.. 현재 JPA로 초반 개발해보면서, 초기 테이블 생성을 hbm2ddl = create 를 이용해서 진행하고 있습니다. 테이블을 생성시, 이게 알파벳 순으로 컬럼 순서를 자동 정렬해버리드라구요. ㅠㅠ 자바 소스내에서 entity 내 자바파일내 커스텀하게 순서를 변경할 수 있는 방법이 있을지 궁금합니다. (구글링 해보니, 없다. 커스텀하게 바꿔라 하는데 .. 잘 이해가 안되서 게시판에 올렸습니다 ) 답변 부탁드릴께요.. 감사합니다.

  • java
  • spring-boot
  • JPA
  • spring
  • 웹앱
고경석 댓글 4 좋아요 3 조회수 4305

live server

미해결

Vue.js 시작하기 - Age of Vue.js

open live server로 동작하게 한다음 ip주소가 다르다고 나와서 주소창에 제가 직접 ip를 쳐서 바꿨는데 혹시 처음ip주소 설정하는 방법있나요?

  • vuejs
  • javascript
P mw 댓글 2 좋아요 1 조회수 413

sdk manager.exe가 안됩니다...

미해결

안드로이드 모바일 앱 모의해킹과 시큐어코딩

sdk manager.exe가 안됩니다... 전에 질문내용들이 있는데 답변이 없네요...

  • android
  • 모의해킹
xian4m 댓글 1 좋아요 0 조회수 258

continue 에서

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

for v in lt: if type(v) is bool: continue print('current type:', v, type(v)) print('multiply by 2', v * 3) 이거 설명하실때 혹시나 is 대신 == 를 넣어봤더니 제대로 실행되던데 같은의미인데 그냥 표현이 다른건지 아니면 원레 쓰임세 자체가 다른건지 궁금합니다. 그리고 위에 예제5번에서 for n in name: if n.isupper(): print(n) else: print(n.upper()) 부분을 for n1 in name: print(n1.upper()) 이렇게 해도 같은 값이 나오던데 upper 함수자체가 대소문자 상관없이 그냥 대문자로 출력하는게 맞는지도 궁금하네요

  • python
이연수 댓글 1 좋아요 0 조회수 210

질문있습니다

해결됨

[오프라인] 뼈문과를 위한 현실 데이터 분석(2월반 모집)

혹시 사정이 있어서, 1주차 수업에 참석을 못하고, 그 이후 2,3,4주차 수업을 들어도 진도를 따라 갈 수 있을 까요?

jingtta 댓글 5 좋아요 0 조회수 378

Ex38. 반복문

미해결

[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)

양수만 가진 리스트 변수 출력할때, for index in num_list: If index<0: num_list.remove(index) 로 하니 -55가 출력되는데 왜이런건가요?

  • python
  • 웹-크롤링
Yeonhyun Park 댓글 1 좋아요 0 조회수 217

오라클은 유료아닌가요?

미해결

실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌

유료아닌가요?

  • java
  • jsp
딸기딸기밭 댓글 1 좋아요 0 조회수 210

exit code 에 따른 ContextClosedEvent 작동여부

미해결

스프링 프레임워크 핵심 기술

강의 잘보고 있습니다. ContextClosedEvent 실행 부분을 따라 했는데 작동하지 않아서 한참 이유를 찾아보다가 제가 사용중인 intellij 에서 stop application 을 하면 exit code -1 이 떨어지더군요. 그런데 영상강좌를 계속 돌려보다 알았는데 영상에서는 exit code 130 이 떨어지는걸 봤습니다. 그래서 runner 에서 이벤트 호출 하고 마지막에 System.exit(130) 을 추가했더니 ContextClosedEvent 리스너가 작동했습니다. exit code 에 따라 왜 작동여부가 달라지는지, 개발환경에서 exit code 를 조절 가능한지 궁금합니다.

  • spring
  • java
김도영 댓글 1 좋아요 0 조회수 1500

동영상의 15:01분 부분질문드립니다

미해결

Do it! 자바 프로그래밍 입문 with 은종쌤

StudentJ.serialNum값의 serialNum가 10002로 나온다고하셨는데요, 학번개념으로 생각해서 studentJ는 계쏙 10001일 되어야하는게 아닌가요 ? ㅜㅜ serialNum는 계속 1부터 계속 증가되기때문에 serialNum은 결과값이 계속 1씩 증가하게되는건가요 ?

  • java
kateshim625 댓글 1 좋아요 4 조회수 288

print('' 어쩌구 '')

미해결

프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)

왜 콤마 두개일떄는 인식이 안 되나요? 그 이상도 안 되는데 콤마는 딱 하나나 세개일때만 인식이 가능한가요? 그리고 sep 같은 명령어는 소문자로만 입력해야 인식이 되는건가요 대문자로 입력하니까 또 오류가 나네요 ㅠㅠ

  • python
신은선 댓글 1 좋아요 0 조회수 174

구조체 출력 관련 질문

미해결

쉽고 빠르게 끝내는 GO언어 프로그래밍 핵심 기초 입문 과정

수고하십니다. 강의 반복해서 잘 듣고 있습니다. 질문드리니 바쁘시겠지만 답변 부탁 드립니다. 예제 1에서 kim, lee, park, cho의 구조체를 출력하면 &가 안붙고 출력이 되는데 구조체를 출력하면 &가 붙어서 출력이 되는게 아닌가요? 이상입니다.

  • go
kium 댓글 1 좋아요 0 조회수 198

질문이요

미해결

React로 NodeBird SNS 만들기

//댓글창 열고 닫기 용. const [ commentFormOpened , setCommentFormOpened ] = useState ( false ); const onToggleComment = useCallback (() => { console . log ( "BRFORE" , commentFormOpened ) setCommentFormOpened ( prev => ! prev ); console . log ( "AFTER" , commentFormOpened ) if (! commentFormOpened ){ dispatch ({ type : LOAD_COMMENTS_REQUEST , data : post . id , }) } }, []); 댓글창 열고 닫기용이요, setCommentFormOpened(prev => !prev); 가 true 와 false를 왔다갔다 해야하잖아요./ 실질적으로, 콘솔에, 변환하기전 Bfore 과 변환후를 After를 찍어보면은, 값은 변하지는 않고 다 false 만 나오네요?? 그런데 이상하게, 댓글창은 열리고 닫히네요... ?? 어떻게 된건지 이해가 안가네요 ㅠㅠ?

  • javascript
  • react
D_One 댓글 1 좋아요 0 조회수 178

크롬 화면이 안바껴요

미해결

Vue.js 시작하기 - Age of Vue.js

App.vue 를 바꾸고 http://localhost:8080/ 을 크롬에서 확인했는데 화면 새로고침을 해도 화면이 바뀌지가 않아요...

  • vuejs
  • javascript
junho kim 댓글 1 좋아요 2 조회수 254

앞서 드린 질문 의 보충 내용입니다. 감사합니다.

미해결

스프링 프레임워크 핵심 기술

여기까지 application.xml 내용과 springApplication.run 주석시 정상 실행된 캡쳐 입니다. 아래는 주석해제시 에러 메시지 입니다. ========================================= 14:06:33.019 [main] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: unknown 14:06:33.019 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration. 14:06:33.021 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via TCCL 14:06:33.022 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - Trying to load META-INF/validation.xml via Hibernate Validator's class loader 14:06:33.022 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only. 14:06:33.188 [background-preinit] DEBUG org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator - Loaded expression factory via original TCCL 14:06:33.191 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator as ValidatorFactory-scoped message interpolator. 14:06:33.191 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.resolver.TraverseAllTraversableResolver as ValidatorFactory-scoped traversable resolver. 14:06:33.192 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.util.ExecutableParameterNameProvider as ValidatorFactory-scoped parameter name provider. 14:06:33.192 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.DefaultClockProvider as ValidatorFactory-scoped clock provider. 14:06:33.192 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory as ValidatorFactory-scoped script evaluator factory. 14:06:33.337 [main] ERROR org.springframework.boot.SpringApplication - Application run failed java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.xml' at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:545) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:494) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:464) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$7(ConfigFileApplicationListener.java:443) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$8(ConfigFileApplicationListener.java:443) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:440) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$0(ConfigFileApplicationListener.java:335) at org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:323) at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:214) at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:198) at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:188) at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:176) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127) at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76) at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53) at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345) at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) at com.example.ExampleApplication.main(ExampleApplication.java:16) Caused by: java.util.InvalidPropertiesFormatException: jdk.internal.org.xml.sax.SAXParseException; An XML properties document must contain the DOCTYPE declaration as defined by java.util.Properties. at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.load(PropertiesDefaultHandler.java:85) at java.base/java.util.Properties.loadFromXML(Properties.java:962) at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:137) at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:122) at org.springframework.boot.env.PropertiesPropertySourceLoader.loadProperties(PropertiesPropertySourceLoader.java:59) at org.springframework.boot.env.PropertiesPropertySourceLoader.load(PropertiesPropertySourceLoader.java:47) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:562) at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:518) ... 25 common frames omitted Caused by: jdk.internal.org.xml.sax.SAXParseException: An XML properties document must contain the DOCTYPE declaration as defined by java.util.Properties. at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.startElement(PropertiesDefaultHandler.java:160) at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:470) at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:411) at java.base/jdk.internal.util.xml.impl.ParserSAX.parse(ParserSAX.java:374) at java.base/jdk.internal.util.xml.impl.SAXParserImpl.parse(SAXParserImpl.java:97) at java.base/jdk.internal.util.xml.PropertiesDefaultHandler.load(PropertiesDefaultHandler.java:83) ... 32 common frames omitted Process finished with exit code 1 그리고 https://stackoverflow.com/questions/29173614/loading-applicationcontext-xml-when-using-springapplication/37193379 위 링크를 보고 importSource 를 시도해 보았지만 결과는 같았습니다. 다시 테스트를 해보니 ClassPathXmlApplicationContext 로 컨테이너 생성 하고 Array.toString 까지 주석처리를 해도 application.xml 파일이 있으면 일단 오류가 발생하는것 같습니다. xml 파일의 전체 내용 입니다. <? xml version ="1.0" encoding ="UTF-8" ?> < beans xmlns ="http://www.springframework.org/schema/beans" xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation ="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" > < bean id ="carService" class ="com.example.CarService" > < property name ="carRepository" ref ="carRepository" /> </ bean > < bean id ="carRepository" class ="com.example.CarRepository" /> </ beans >

  • spring
  • java
김도영 댓글 1 좋아요 1 조회수 1466

13강

미해결

테레비보다 재미있는 제이쿼리(jQuery) 강좌

$(document).ready(function(){ $("#btn1").click(function(){ $("#test1").text(function(i, origText){ return "Old text: " + origText + " New text: Hello world! (index: " + i + ")"; }); }); 의 i와 origText는 무엇을 뜻하는 것인가요?

  • jquery
amuk02157 댓글 1 좋아요 0 조회수 373

let 과 var

미해결

모던 자바스크립트(javascript) 개발을 위한 ES6 강좌

es6 문법에서 var 보단 let 을 권장하셨는데 for문을 비롯한 block scope 에 저장되는 값이기 때문인가요? let 대신 var 를 쓸 때의 장단점을 알고 싶습니다.

  • javascript
  • es6
남기웅 댓글 0 좋아요 0 조회수 238

xml 로 빈설징시 springApplication.run

미해결

스프링 프레임워크 핵심 기술

안녕하세요. xml 로 빈설징시 springApplication.run 을 주석처리 하지 않으면 오류가 발생하는데 이유가 궁금합니다. 오류내용 : classpath unknown IllegalStateException fail to load property source from location classpath:/application.xml 감사합니다.

  • spring
  • java
김도영 댓글 1 좋아요 0 조회수 170

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.

미해결

예제로 배우는 스프링 입문 (개정판)

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project. 라고 에러 떴는데 https://stackoverflow.com/questions/36427868/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-12test 여기서 찾아보니 아래 코드를 pom.xml 에 넣어주니 에러가 사라졌습니다. 같은문제를 격으신분들 참고하세요 <plugin> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-surefire-plugin </artifactId> <version> 2.19.1 </version> <configuration> <testFailureIgnore> true </testFailureIgnore> </configuration> </plugin>

  • spring
  • java
최원우 댓글 1 좋아요 6 조회수 10418

mnist 객체 선언 중 오류 문제

미해결

인공지능 R GO! 하자!

안녕하세요 에이림님 mnist 객체 선언중 아래와 같은 에러가 나타납니다. Error in initialize_python(required_module, use_environment) : Installation of Python not found, Python bindings not loaded. 라는 오류가 나타납니다. 파이썬을 설치하였는데도 계속 오류가 뜨는데 어떻게 해야할까요 ㅠㅠ

  • R
jjang7ok2002 댓글 0 좋아요 0 조회수 245

강의자료 부탁드려요

미해결

초보부터 개발자 취업까지!! 실전 자바 강좌

강의 자료 지원해주셨으면 합니다. PPT 등

  • java
배주한 댓글 0 좋아요 0 조회수 218

인기 태그

인프런 TOP Writers

주간 인기글