묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전 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>
-
미해결인공지능 R GO! 하자!
mnist 객체 선언 중 오류 문제
안녕하세요 에이림님 mnist 객체 선언중 아래와 같은 에러가 나타납니다. Error in initialize_python(required_module, use_environment) : Installation of Python not found, Python bindings not loaded. 라는 오류가 나타납니다. 파이썬을 설치하였는데도 계속 오류가 뜨는데 어떻게 해야할까요 ㅠㅠ
-
미해결초보부터 개발자 취업까지!! 실전 자바 강좌
강의자료 부탁드려요
강의 자료 지원해주셨으면 합니다. PPT 등
-
미해결파이썬 프로그래밍
PPT 자료 올려주시면 안될까요?
PPT 자료 올려주시면 안될까요?
-
해결됨자바 ORM 표준 JPA 프로그래밍 - 기본편
JPA - 애플리케이션 개발 첫 단추부터 꼬였습니다.
안녕하세요 JPA는 진짜 정말 처음 합니다. 강의에서 빨간글씨들이 올라가면 된다고 하셨는데 (3:02초) 강의 화면이랑 전혀 다른 메세지가 뜹니다. 뭐가 문제인지 모르겠습니다. 저는 H2Database 1.4.200 버전을 다운 받아서 pom.xml에서 <version>1.4.200</version> 으로 맞췄습니다. 그리고 초보자를 위한 강의인데 단축키 사용이 너무 잦으셔서 따라가기 벅찹니다. 아직 처음인데 완강 후 만족할 시, 샘 강의 테크를 탈 생각입니다. 새로 만드실 강의에서는 단축키 설명도 좀 해주셨으면 합니다. 정말 처음이기에 질문을 자주 할 겁니다. 잘 부탁 드립니다 ~ +) 위 질문 처리 했습니다. 추가 질문 1. 같은 강의에서 16:10초에서 좌항의 자료형과 변수를 바로 입력 하는건 어떻게 하나요?? 2. JPA 이 강의 이전에 선수해야 할 과목이 있는지 궁금합니다. 예를 들어, MySQL 강의를 듣고 들어야 한다던지...
-
미해결스프링 웹 MVC
톰캣 add configuration에서 설정..
윈도우를 쓰고있습니다..말씀하신대로 설정을 다했는데 tomcat Run이 안되네요 ㅠㅠ;
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
트랜잭션, in 쿼리 질문
안녕하세요. 영한님 트랜잭션 관련 질문드립니다 ! 서비스 레이어에 동일한 로직을 1, 2번으로 작성했는데 2번째 로직의 경우 트랜잭션이 2번 발생한다는 리뷰를 받아서 질문드립니다. 질문1. 람다를 쓸 경우 트랜잭션 문제로 성능상 이슈가 있는지 질문2. findTop으로 조회할 때 in 쿼리 사용 가능 여부 확인해주시면 감사하겠습니다! 아래에 코드 첨부합니다 ``` 1번째 ``` fun findReviewsBySellerId(sellerId: String): List<Review> { val products = productRepository.findAllBySellerId(sellerId) val reviewsToShow = ArrayList<Review>() for (product in products) { val firstReview = reviewRepository.findAllByProductId(product.id!!).first() reviewsToShow.add(firstReview) } return reviewsToShow } ````````` ```2번째``` fun findReviewsBySellerId(sellerId: String): List<Review> { return productRepository.findAllBySellerId(sellerId) .map { product -> reviewRepository.findTopByProductIdOrderByCreatedDate(product.id!!) } } ``````
-
미해결실전 JSP (renew ver.) - 신입 프로그래머를 위한 강좌
hobby의 체크박스를 클릭하지 않으면 예외가 발생합니다.
아무래도 빈 문자열 배열을 참조하기 때문에 그런것 같은데 어떻게 하면 예외 발생없이 빈문자열을 출력할 수 있을까요?
-
미해결인스타그램 클론 - full stack 웹 개발
한글 태그가 인식이 안됩니다.ㅠㅠ
안녕하세요. 워크스페이스 : https://goor.me/y6ttc 터미널 : https://goor.me/A3G8m 영어 태그는 사이트에서 인식이 되는데 한글 태그는 인식이 안되서 질문 드립니다. 어떤 곳을 해결해야 할까요ㅠㅠ??