무료
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결예제로 배우는 스프링 입문 (개정판)
Request핸들러가 Ownercontroller를 작동시키지 않고 Wellcomecontroller를 작동시킵니다.
또 어떻게 저 코드를 볼수잇나요?
- 미해결예제로 배우는 스프링 입문 (개정판)
unable: to acces jarfile target/*.jar
java -jar target/*.jar 이 실행되지않아 target파일로 들어간뒤에도 실행되지않아 전체이름을 다 쳤더니 실행되었습니다. 왜 *가 먹히지 않았던걸까요?
- 미해결예제로 배우는 스프링 입문 (개정판)
spring API 문서 어디서 볼 수 있을까요
안녕하세요 스프링 API 문서는 어디서 볼 수 있을까요
- 미해결예제로 배우는 스프링 입문 (개정판)
maven plugin 에러 해결 도와주세요.
[ERROR] Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.31:validate (default) on project spring-petclinic: Execution default of goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.31:validate failed: An API incompatibility was encountered while executing io.spring.javaf ormat:spring-javaformat-maven-plugin:0.0.31:validate: java.lang.UnsupportedClassVersionError: io/spring/javaformat/eclipse/jdt/jdk11/internal/formatter/Def aultCodeFormatter has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognize s class file versions up to 52.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>io.spring.javaformat:spring-javaformat-maven-plugin:0.0.31 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-maven-plugin/0.0.31/spring-javaformat-maven-plugin-0.0.31.jar [ERROR] urls[1] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-formatter/0.0.31/spring-javaformat-formatter-0.0.31.jar [ERROR] urls[2] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-config/0.0.31/spring-javaformat-config-0.0.31.jar [ERROR] urls[3] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-formatter-eclipse-jdt-jdk8/0.0.31/spring-javaformat-formatter -eclipse-jdt-jdk8-0.0.31.jar [ERROR] urls[4] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-formatter-eclipse-jdt-jdk11/0.0.31/spring-javaformat-formatte r-eclipse-jdt-jdk11-0.0.31.jar [ERROR] urls[5] = file:/C:/Users/Gunwoo/.m2/repository/io/spring/javaformat/spring-javaformat-formatter-eclipse-runtime/0.0.31/spring-javaformat-formatter- eclipse-runtime-0.0.31.jar [ERROR] urls[6] = file:/C:/Users/Gunwoo/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.24/plexus-utils-3.0.24.jar [ERROR] urls[7] = file:/C:/Users/Gunwoo/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar [ERROR] urls[8] = file:/C:/Users/Gunwoo/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar [ERROR] urls[9] = file:/C:/Users/Gunwoo/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.3/org.eclipse.sisu.inject-0.3.3.jar [ERROR] urls[10] = file:/C:/Users/Gunwoo/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException 이런식으로 플러그인 에러가 나고있습니다. ㅠㅠ..현재 java8버전을 사용하고있는데 11이상버전으로 해야하는걸까요?..
- 해결됨예제로 배우는 스프링 입문 (개정판)
Window 유저 - Unable to access jarfile 오류 해결 팁!
저는 윈도우 파워쉘 사용하면서 해결했습니다! 공식문서에서는 java -jar target/*.jar 이렇게 치라고 나와있는데 잘 안됐었어요 ㅠㅠ target 디렉터리를 들어간 상태에서 java -jar *.jar 라고 해도 안 되더라고요? 여기서 ls 명령어를 치면 디렉토리 및 파일 목록들이 쭉 나오거든요 spring-petclinic-2.6.0-SNAPSHOT.jar 아니면 뭐 spring-petclinic-2.6.0.BUILD-SNAPSHOT.jar 이라던지 비스무리한 이름의 jar 파일이 보이실 거에요 그거 복사하셔서 활용하시면 되겠습니다. 저는 여기서 spring-petclinic-2.6.0-SNAPSHOT.jar 라는 파일이 있기에, spring-petclinic 디렉터리에서 target 디렉터리로 들어간다음 java -jar spring-petclinic-2.6.0-SNAPSHOT.jar를 입력하니까 잘 됐었습니다!
- 해결됨예제로 배우는 스프링 입문 (개정판)
스프링을 이제 막 공부하기 시작했습니다
강의같은 경우에는 문제를 해결한 과정을 쓰기 보다는 학습하는 거에 초점을 둬서 공부해야 할 것 같은데, 이거를 블로그에 정리하는 건 너무 오바일까요? 깃에다가 소스 전체를 커밋하기엔 제 소스도 아니고 말이죠... 어떻게 기록하면서 공부해야 할지 감이 잘 안 잡히네요 ㅜㅜ 방향성이라도 조언해주신다면 감사드리겠습니다
- 미해결예제로 배우는 스프링 입문 (개정판)
항공기 이륙소리 ㅎㅎ
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
- 해결됨예제로 배우는 스프링 입문 (개정판)
Interceptor 도 AOP라고 볼 수 있나요?
제목 그대로 입니다! interceptor도 관점지향적이잖아요..? controller 전이나 후 preHandler, postHandler를 활용하여 공통적으로 권한체크라던지 공통 로직을 처리할 수 있는데 그럼 interceptor도 AOP인지 궁금합니다!
- 미해결예제로 배우는 스프링 입문 (개정판)
빌드는 성공적으로 됐고 빌드 시 에러 로그가 없었습니다..
특정 플러그인만 찾지 못해서 구글링 해봤으나 해결이 되지 않아 질문 드립니다.. m2 폴더 삭제하고 재빌드 했는데 마찬가지 현상이 발생합니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
Add New Pet 정보 입력하고 다음으로 넘어가려고 하면 추가가 안되고 에러가 납니다
Add Owner 까지 잘 되다가 Add New Pet 정보 입력하고 다음으로 넘어가려고 하면 에러가 납니다 Find Owner 로 등록한 Last name 으로 검색해도 검색 결과가 안나오구요.. jdk 8 이라 그런가 싶어서 11 로 새로 설치하고 환경변수도 바꿔준 뒤 실행해봐도 똑같은 에러가 뜹니다... 터미널에 뜬 내용입니다
- 해결됨예제로 배우는 스프링 입문 (개정판)
2022.01.07 의존성 주입 관련 제보
2022.01.07 기점 수업을 수강 중 강의에서 사용하시는 소스와 현재 소스 차이가 있어 안내드립니다. 기존에 PetRepository가 존재했지만, 01/05 기점으로 PetRepository가 제거된 상태입니다. 당황하지 마시고, 새로 샘플Repository 생성해서 주입하는걸 테스트 진행하면 될 것 같습니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
왜 run으로 실행하면 되지 않는건가요 ?
왜 pet clinic application을 run 하면 Could not initialize class org.jetbrains.jps.builders.JpsBuildBundle 이런 에러가 나는건가요 ?? 꼭 terminal로 실행해야 되는건가요 ?
- 미해결예제로 배우는 스프링 입문 (개정판)
인텔리제이에서 어떤테마를 적용시키면 선생님처럼 글자색이 바뀌나요?
원래 이클립스만 사용하다가 이번에 19 .03 인텔리제이 얼티메이트를 사용해보고 있습니다!강의에서 보면 선생님의 코드들은 단어마다 색깔이 다 달라서 가독성이 뛰어난데 제가 쓰는 코드를 보면 흰색이 대부분이라 가독성이 떨어집니다 ㅜㅜ .. 위는 제가 쓰는 코드인데 선생님은 OwnerRepository clinicService, VisitRepository visits 등 색깔이 다 다른데 전 흰색으로 통일되어 있어서, 어떤 설정을 하면 그런식으로 변경할 수 있는지 여쭙고싶습니다!!
- 미해결예제로 배우는 스프링 입문 (개정판)
이클립스 사용자를 위한 세팅방법
질문게시판을 많이 사용하셔서 여기다가 올립니다 죄송합니다. 학습을 이클립스로 하시는 분들을 위해 초기 세팅법을 포스팅해봤습니다. - 저도 오류잡느라 애먹었는데 다른분들에게 최대한 도움을 드리고자 합니다. https://glasowk.tistory.com/10 고생하시고 즐거운 학습하세요 ~~ 좋은 강의 감사합니다. 백기선님 화이팅 !!
- 미해결예제로 배우는 스프링 입문 (개정판)
@LogExecutionTime Annotation 작성 후 mvnw package 에러
[ERROR] Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.25:validate (default) on project spring-petclinic: Formatting violations found in the following files: [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\owner\LogAspect.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\owner\LogExecutionTime.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\owner\Owner.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\owner\OwnerController.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\owner\OwnerRepository.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\proxy\Cash.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\proxy\CreditCard.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\proxy\Payment.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\main\java\org\springframework\samples\petclinic\proxy\Store.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\test\java\org\springframework\samples\petclinic\owner\OwnerControllerTests.java [ERROR] * C:\Users\User\JavaProject\spring-petclinic\src\test\java\org\springframework\samples\petclinic\pay\StoreTest.java [ERROR] [ERROR] Run `spring-javaformat:apply` to fix. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 어노테이션 작성후 css가 깨져서 다시 빌드하려고 mvnw package 명령어를 쳤는데 다음과 같은 에러가 뜨네요ㅜㅜ
- 미해결예제로 배우는 스프링 입문 (개정판)
Proxy Pattern Test 클래스 작성 중 질문
안녕하세요. Test 폴더에 하위 패키지로 pay를 만들고 테스트를 하려고 했는데 src 폴더 하위에 작성한 pay 패키지 하위의 클래스들을 임포트해와야만 테스트를 해볼 수 있네요. 강의 영상에서는 임포트하지 않아도 작성할 수 있는 것 같은데 어떻게 하면 될까요?
- 미해결예제로 배우는 스프링 입문 (개정판)
maven plugin 에러
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.021 s [INFO] Finished at: 2021-06-06T23:21:18+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project spring-petclinic: There are test failures. [ERROR] [ERROR] Please refer to C:\Users\User\JavaProject\spring-petclinic\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-16\bin\java" -javaagent:C:\\Users\\User\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-run time.jar=destfile=C:\\Users\\User\\JavaProject\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750\surefirebooter17835205775616496 159.jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750 2021-06-06T23-21-16_829-jvmRun1 surefire6151291350789010891tmp surefire_012945399030963262607tmp" [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-16\bin\java" -javaagent:C:\\Users\\User\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-run time.jar=destfile=C:\\Users\\User\\JavaProject\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750\surefirebooter17835205775616496 159.jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750 2021-06-06T23-21-16_829-jvmRun1 surefire6151291350789010891tmp surefire_012945399030963262607tmp" [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) [ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [ERROR] at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39) [ERROR] at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122) [ERROR] at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:61) [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 안녕하세요. 프로젝트를 git clone한 뒤 mvnw package 명령어를 실행했는데 다음과 같은 에러가 발생했네요. JDK16버전을 지원을 하지 않나해서 JDK 11로 재설정하고 재실행했는데도 동일한 에러가 발생하네요.
- 미해결예제로 배우는 스프링 입문 (개정판)
OwnerController에서
OwnerController에서 "owners/createOrUpdateOwnerForm"은 왜 private static final로 따로 상수화해둔 것인지 궁금합니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
intellij 에서 run이 안 됩니다 ㅜㅜ
원래는 아예 run 버튼이 안 떠서 intellij 가 main 메소드를 못 찾는 것 같아서 구글링을 해봤는데 src 폴더에 오른쪽 버튼 누르고 Mark directory as > source 하라는 솔루션이 있어서 따라해봤습니다 run 버튼은 뜨는데 실행이 안됩니다 (그냥 실행조차 안돼서 당연히 에러 메시지도 없어요) maven 빌드해서 터미널에서 jar 실행은 됩니다! 혹시 어떤 문제인지 아시는 바가 있을까요...ㅠㅠ 도움 부탁드립니다
- 미해결예제로 배우는 스프링 입문 (개정판)
인텔리J 처음화면부터 다르네요
주소 복사해서 넣는걸 찾고싶은데 따로 공부해야되는건가요