묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨홍정모의 따라하며 배우는 C언어
for(;;)에 대해서 여쭤봅니다.
이건뭐지? 라고 생각했는데, while(1)과 같다는 말씀듣고 구동해보고 while로도 써봤습니다. 그런데 while(1)에서는 1이 true니까 계속 무한루프 도는걸 알겠는데, for문의 용법에 for(initialize; test; update) 에 for(;;)는 그럼 test가 공백처리 되어있는데 for는 무엇을 기준으로 무한루프 도는건가요 ? 아예 비어있으니 감도 안잡혀서 여쭤봅니다 ㅠ
-
해결됨홍정모의 따라하며 배우는 C언어
디버그 되돌리기?
교수님, 디버거 쓸때 F10으로 들어간것을 빠져나올땐 shift+F11누르면 되는걸로 찾았는데, F11로 한줄씩 찍어보다가 이전줄로 돌아가는 방법은 없을까요 ? 다시 디버깅 해야하나요 ?
-
해결됨실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
hbm2ddl 를 이용해 테이블 생성시 컬럼 순서 수정 방법
안녕하세요? 영한님? 질문있어 문의드립니다..현재 JPA로 초반 개발해보면서, 초기 테이블 생성을 hbm2ddl = create 를 이용해서 진행하고 있습니다.테이블을 생성시, 이게 알파벳 순으로 컬럼 순서를 자동 정렬해버리드라구요. ㅠㅠ자바 소스내에서 entity 내 자바파일내 커스텀하게 순서를 변경할 수 있는 방법이 있을지 궁금합니다. (구글링 해보니, 없다. 커스텀하게 바꿔라 하는데 .. 잘 이해가 안되서 게시판에 올렸습니다 )답변 부탁드릴께요..감사합니다.
-
미해결Vue.js 시작하기 - Age of Vue.js
live server
open live server로 동작하게 한다음 ip주소가 다르다고 나와서 주소창에 제가 직접 ip를 쳐서 바꿨는데 혹시 처음ip주소 설정하는 방법있나요?
-
미해결안드로이드 모바일 앱 모의해킹과 시큐어코딩
sdk manager.exe가 안됩니다...
sdk manager.exe가 안됩니다... 전에 질문내용들이 있는데 답변이 없네요...
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
continue 에서
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함수자체가 대소문자 상관없이 그냥 대문자로 출력하는게 맞는지도 궁금하네요
-
해결됨[오프라인] 뼈문과를 위한 현실 데이터 분석(2월반 모집)
질문있습니다
혹시 사정이 있어서, 1주차 수업에 참석을 못하고, 그 이후 2,3,4주차 수업을 들어도 진도를 따라 갈 수 있을 까요?
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
Ex38. 반복문
양수만 가진 리스트 변수 출력할때, for index in num_list: If index<0: num_list.remove(index) 로 하니 -55가 출력되는데 왜이런건가요?
-
미해결실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌
오라클은 유료아닌가요?
유료아닌가요?
-
미해결스프링 프레임워크 핵심 기술
exit code 에 따른 ContextClosedEvent 작동여부
강의 잘보고 있습니다. ContextClosedEvent 실행 부분을 따라 했는데 작동하지 않아서 한참 이유를 찾아보다가 제가 사용중인 intellij 에서 stop application 을 하면 exit code -1 이 떨어지더군요. 그런데 영상강좌를 계속 돌려보다 알았는데 영상에서는 exit code 130 이 떨어지는걸 봤습니다. 그래서 runner 에서 이벤트 호출 하고 마지막에 System.exit(130) 을 추가했더니 ContextClosedEvent 리스너가 작동했습니다. exit code 에 따라 왜 작동여부가 달라지는지, 개발환경에서 exit code 를 조절 가능한지 궁금합니다.
-
미해결Do it! 자바 프로그래밍 입문 with 은종쌤
동영상의 15:01분 부분질문드립니다
StudentJ.serialNum값의 serialNum가 10002로 나온다고하셨는데요, 학번개념으로 생각해서 studentJ는 계쏙 10001일 되어야하는게 아닌가요 ? ㅜㅜ serialNum는 계속 1부터 계속 증가되기때문에 serialNum은 결과값이 계속 1씩 증가하게되는건가요 ?
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
print('' 어쩌구 '')
왜 콤마 두개일떄는 인식이 안 되나요? 그 이상도 안 되는데 콤마는 딱 하나나 세개일때만 인식이 가능한가요? 그리고 sep 같은 명령어는 소문자로만 입력해야 인식이 되는건가요 대문자로 입력하니까 또 오류가 나네요 ㅠㅠ
-
미해결쉽고 빠르게 끝내는 GO언어 프로그래밍 핵심 기초 입문 과정
구조체 출력 관련 질문
수고하십니다. 강의 반복해서 잘 듣고 있습니다. 질문드리니 바쁘시겠지만 답변 부탁 드립니다. 예제 1에서 kim, lee, park, cho의 구조체를 출력하면 &가 안붙고 출력이 되는데 구조체를 출력하면 &가 붙어서 출력이 되는게 아닌가요? 이상입니다.
-
미해결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 만 나오네요?? 그런데 이상하게, 댓글창은 열리고 닫히네요... ?? 어떻게 된건지 이해가 안가네요 ㅠㅠ?
-
미해결Vue.js 시작하기 - Age of Vue.js
크롬 화면이 안바껴요
App.vue 를 바꾸고 http://localhost:8080/ 을 크롬에서 확인했는데 화면 새로고침을 해도 화면이 바뀌지가 않아요...
-
미해결스프링 프레임워크 핵심 기술
앞서 드린 질문 의 보충 내용입니다. 감사합니다.
여기까지 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>
-
미해결테레비보다 재미있는 제이쿼리(jQuery) 강좌
13강
$(document).ready(function(){ $("#btn1").click(function(){ $("#test1").text(function(i, origText){ return "Old text: " + origText + " New text: Hello world! (index: " + i + ")"; }); }); 의 i와 origText는 무엇을 뜻하는 것인가요?
-
미해결모던 자바스크립트(javascript) 개발을 위한 ES6 강좌
let 과 var
es6 문법에서 var 보단 let 을 권장하셨는데 for문을 비롯한 block scope 에 저장되는 값이기 때문인가요? let 대신 var 를 쓸 때의 장단점을 알고 싶습니다.
-
미해결스프링 프레임워크 핵심 기술
xml 로 빈설징시 springApplication.run
안녕하세요. xml 로 빈설징시 springApplication.run 을 주석처리 하지 않으면 오류가 발생하는데 이유가 궁금합니다. 오류내용 : classpath unknown IllegalStateException fail to load property source from location classpath:/application.xml 감사합니다.
-
미해결예제로 배우는 스프링 입문 (개정판)
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>