묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 프레임워크 핵심 기술
앞서 드린 질문 의 보충 내용입니다. 감사합니다.
여기까지 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 영어 태그는 사이트에서 인식이 되는데 한글 태그는 인식이 안되서 질문 드립니다. 어떤 곳을 해결해야 할까요ㅠㅠ??
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
블록 생성 전파 강의에서
CNN PNN ENN 이 도대체 뭔가요? 그리고 각각에서 어떤 수행하는지 가르쳐주세요
-
미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
저는 cmder에서 선생님처럼 안됩니다.
우선 adduser로 아이디를 만들면 강의에서는 바로 password 입력하는 것이 나오는데 저의 경우는 안뜹니다. 그리고 login ID 를 하면 그이후에 password 입력할 것이 뜨지 않고 바로 connection to (제 IP 주소) closed가 뜨면서 나오게 됩니다.' 어떻게 해야하는지 궁금합니다.
-
미해결생활코딩 - HTML 기초
교육내용은 어디서 다운로드 받을수 있을까요?
메모장에 복사하라고 했는데 교육내용은 어디서 다운로드 받을수 있을까요?
-
미해결웹 게임을 만들며 배우는 자바스크립트
아무리해도 혼자못하겠는데 어떻게해야하나요
아무리해도혼자 못하겠는데 어떻게해야되나요?
-
해결됨PWA 시작하기 - 웹 기술로 앱을 만들자
Github Repo 등록요청
인프런 아이디 : vxggangxv@naver.com 인프런 닉네임: vxggangxv 깃헙 username : vxggangxv 깃헙 email : vxggangxv@naver.com Vue수업을 다 듣고 이제 vue-pwa 만들어 보려구요!~
-
미해결Node.js로 웹 크롤링하기
Failed to luach chrome
선생님, herorku라는 배포 서비스를 이용해서 배포 후 실행을 해봤는데 다음과 사진과 같은 에러가 떠요 로컬에선 잘되는데 배포한 버전은 저런 에러가 떠요 Error: Failed to launch chrome! 2019-12-02T03:37:41.850808+00:00 app[web.1]: /app/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
-
미해결Vue로 Nodebird SNS 만들기
textarea success 질문
게시글 등록하면 textarea가 초록색으로 바뀌어야 되는거 아닌가요?? 계속 빨간색이 떠서.. 제가 잘못쓴게 있을까요?