무료
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결예제로 배우는 스프링 입문 (개정판)
의존성 주입에 관하여 질문이 있습니다
의존성을 주입한다는 표현은 결국 new 생성자()를 대신해주는 것이라 이해해도 무방한가요? 즉 인스턴스를 대신 생성하여 선언한 인스턴스가 참조할 수 있게 해준다고 이해해도 되는건가요??
- 예제로 배우는 스프링 입문 (개정판)
강의자료는 다운받을 수 없나요?
삭제된 글입니다
- 미해결예제로 배우는 스프링 입문 (개정판)
PetClinicApplication 실행
인텔리J에서 Run을 이용해서 PetClinicApplication.java를 실행시키려는데 실행이 안되요..java jar를 이용해선 할 수 있습니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
100%인데 수료증이 왜 안보이죠?
100%인데 수료증이 왜 안보이죠?
- 미해결예제로 배우는 스프링 입문 (개정판)
vscode 실행방법
안녕하세요. vscode 로 진행하려고 하는데요. git clone https://github.com/spring-projects/spring-petclinic.git cd spring-petclinic ./mvnw package --> 이 부분이 인식이 안되고 있는데요. java -jar target/*.jar vscode로 하는 방법은 위의방법과 동일하게 진행해도 괜찮을까요? vscode 의 extension 은 다 설치하였습니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
nanosecond -> milliseconds
성능테스트하면 계속 나노second로 되는데 혹시 밀리second로 자체적으로 바꿀 수 있나요?..
- 예제로 배우는 스프링 입문 (개정판)
ApplicationContext
삭제된 글입니다
- 미해결예제로 배우는 스프링 입문 (개정판)
vetController 부분에서 오류가 납니다. - 처음 Maven 실행 부분 입니다.
[INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] VetControllerTests.testShowResourcesVetList:75 Status expected:<200> but was:<406> [ERROR] Errors: [ERROR] PetclinicIntegrationTests.testFindAll » IllegalState Failed to load Applicatio... [INFO] [ERROR] Tests run: 40, Failures: 1, Errors: 1, Skipped: 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.446 s [INFO] Finished at: 2020-12-10T00:09:20+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 /Users/username/IdeaProjects/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] -> [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 안녕하세요 선생님, git 으로부터 소스코드 다운받고, 1.8 버전의 jdk 로 했습니다. 그런다음에 maven --> mvnw package 의 명령어를 터미널 켜서 쳤는데, 이러한 오류가 발생했습니다. 제가 스프링 코드를 아예 볼 줄 몰라서 구글링을 해 봤는데.. 찾은 코드를 어디에 넣어야 할지 몰라서 이렇게 질문 남기게 되었습니다. 위는 오류 메세지 입니다. 혹시 몰라서 VetController 코드도 올려 보겠습니다. package org.springframework.samples.petclinic.vet; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ResponseBody; import java.util.Map; /** * @author Juergen Hoeller * @author Mark Fisher * @author Ken Krebs * @author Arjen Poutsma */ @Controller class VetController { private final VetRepository vets; public VetController(VetRepository clinicService) { this.vets = clinicService; } @GetMapping("/vets.html") public String showVetList(Map<String, Object> model) { // Here we are returning an object of type 'Vets' rather than a collection of Vet // objects so it is simpler for Object-Xml mapping Vets vets = new Vets(); vets.getVetList().addAll(this.vets.findAll()); model.put("vets", vets); return "vets/vetList"; } @GetMapping({ "/vets" }) public @ResponseBody Vets showResourcesVetList() { // Here we are returning an object of type 'Vets' rather than a collection of Vet // objects so it is simpler for JSon/Object mapping Vets vets = new Vets(); vets.getVetList().addAll(this.vets.findAll()); return vets; } }
- 미해결예제로 배우는 스프링 입문 (개정판)
혹시 소스코드는 어디서 다운받나요??
소스코드는 어디서 다운 받을 수 있는지 여쭤봅니다.
- 미해결예제로 배우는 스프링 입문 (개정판)
maven plugin을 찾지 못햇다고 뜨네요
$ ./mvnw package [INFO] Scanning for projects... [INFO] [INFO] ------------< org.springframework.samples:spring-petclinic >------------ [INFO] Building petclinic 2.4.0.BUILD-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4 .0/spring-boot-maven-plugin-2.4.0.pom Downloading from spring-milestones: https://repo.spring.io/milestone/org/springframework/boot/spring-boot-maven-plugin/2 .4.0/spring-boot-maven-plugin-2.4.0.pom Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.4.0/s pring-boot-maven-plugin-2.4.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.985 s [INFO] Finished at: 2020-12-01T14:48:28+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.4.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.4.0: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.4.0 from/to spring-snapshots (https://repo.spring.io/sn apshot): Transfer failed for https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4.0/spr ing-boot-maven-plugin-2.4.0.pom: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterEx ception: the trustAnchors parameter must be non-empty -> [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/PluginResolutionException user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main) $ mvn clean package bash: mvn: command not found user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main) $ mvnw package bash: mvnw: command not found user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main) $ mvnw packcage bash: mvnw: command not found user@DESKTOP-SDILS47 MINGW64 ~/IdeaProjects/spring-petclinic (main) $ ./mvnw package [INFO] Scanning for projects... [INFO] [INFO] ------------< org.springframework.samples:spring-petclinic >------------ [INFO] Building petclinic 2.4.0.BUILD-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- Downloading from spring-snapshots: https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4 .0/spring-boot-maven-plugin-2.4.0.pom Downloading from spring-milestones: https://repo.spring.io/milestone/org/springframework/boot/spring-boot-maven-plugin/2 .4.0/spring-boot-maven-plugin-2.4.0.pom Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/2.4.0/s pring-boot-maven-plugin-2.4.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.228 s [INFO] Finished at: 2020-12-01T14:49:46+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:2.4.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:2.4.0: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:2.4.0 from/to spring-snapshots (https://repo.spring.io/sn apshot): Transfer failed for https://repo.spring.io/snapshot/org/springframework/boot/spring-boot-maven-plugin/2.4.0/spr ing-boot-maven-plugin-2.4.0.pom: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterEx ception: the trustAnchors parameter must be non-empty -> [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/PluginResolutionException ./mvnw package 로 실행을 햇는데 찾지 못햇다고 뜨네요 혹시 어떻게 하면 될까요??
- 미해결예제로 배우는 스프링 입문 (개정판)
./mvnw package 에러가 납니다 ㅠㅠ
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.635 s [INFO] Finished at: 2020-11-14T01:43:00+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal ro.isdc.wro4j:wro4j-maven-plugin:1.9.0:run (default) on project spring-petclinic: Execution default of goal ro.isdc.wro4j:wro4j-maven-plugin:1.9.0:run failed: Unable to load the mojo 'run' in the plugin 'ro.isdc.wro4j:wro4j-maven-plugin:1.9.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: ro/isdc/wro/maven/plugin/Wro4jMojo has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>ro.isdc.wro4j:wro4j-maven-plugin:1.9.0 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/bscom/.m2/repository/ro/isdc/wro4j/wro4j-maven-plugin/1.9.0/wro4j-maven-plugin-1.9.0.jar [ERROR] urls[1] = file:/C:/Users/bscom/.m2/repository/org/webjars/bootstrap/3.3.6/bootstrap-3.3.6.jar [ERROR] urls[2] = file:/C:/Users/bscom/.m2/repository/org/webjars/jquery/1.11.1/jquery-1.11.1.jar [ERROR] urls[3] = file:/C:/Users/bscom/.m2/repository/org/mockito/mockito-core/3.3.3/mockito-core-3.3.3.jar [ERROR] urls[4] = file:/C:/Users/bscom/.m2/repository/net/bytebuddy/byte-buddy/1.10.5/byte-buddy-1.10.5.jar [ERROR] urls[5] = file:/C:/Users/bscom/.m2/repository/net/bytebuddy/byte-buddy-agent/1.10.5/byte-buddy-agent-1.10.5.jar [ERROR] urls[6] = file:/C:/Users/bscom/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar [ERROR] urls[7] = file:/C:/Users/bscom/.m2/repository/ro/isdc/wro4j/wro4j-core/1.9.0/wro4j-core-1.9.0.jar [ERROR] urls[8] = file:/C:/Users/bscom/.m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar [ERROR] urls[9] = file:/C:/Users/bscom/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar 뭐가 문제일까요 ㅠㅠㅠㅠ???
- 미해결예제로 배우는 스프링 입문 (개정판)
스프링 로드맵이랑 "스프링과 JPA 기반 웹 애플리케이션 개발" 이강좌랑중복되는 내용인지 아니면 로드맵과 "스프링과 JPA 기반 웹 애플리케이션 개발" 둘중에 하나만 보면되는건지 궁금합니다~(둘다 보기엔 가격이 부담돼서요^^)
스프링 로드맵이랑 "스프링과 JPA 기반 웹 애플리케이션 개발" 이강좌랑중복되는 내용인지 아니면 로드맵과 "스프링과 JPA 기반 웹 애플리케이션 개발" 둘중에 하나만 보면되는건지 궁금합니다~(둘다 보기엔 가격이 부담돼서요^^) 로드맵 (여러 강좌묶음) 과 "스프링과 JPA 기반 웹 애플리케이션 개발" 33만원짜리 강좌가 있는데요 두 강좌가 중복되는건지 따로따로 다른 내용인지 궁금합니다. 다른 내용이면 어떤쪽을 먼저 봐야되나요..? 둘다 보기엔 가격이 좀.. 부담돼서요^^
- 예제로 배우는 스프링 입문 (개정판)
실행시 오류
삭제된 글입니다
- 미해결예제로 배우는 스프링 입문 (개정판)
9분 쯤 불들어오는 아이콘은 인텔리 버전에따라 보이나요?
.
- 미해결예제로 배우는 스프링 입문 (개정판)
html페이지에 age 추가시 오류페이지로 이동
디디버그 해보니 이런게 뜨면서 오류페이지로 이동하네요. age순서같은것도 전부 똑같이 따라했는데 이런 오류가 뜬 이유가 뭔가요?
- 미해결예제로 배우는 스프링 입문 (개정판)
age 추가시 int가 아니라 integer를 사용하는 이유가 뭔가요?
제목 그대로 int가 아니라 integer를 사용하는 이유가 뭔가요?
- 미해결예제로 배우는 스프링 입문 (개정판)
sh터미널 ./mvnw package 에러발생..도와주세요...
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15:20 min [INFO] Finished at: 2020-10-03T22:38:25+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\ESE\IdeaProjects\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-15\bin\java" -javaagent:C:\\Users\\ESE\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-runt ime.jar=destfile=C:\\Users\\ESE\\IdeaProjects\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\ESE\AppData\Local\Temp\surefire8945284040995119689\surefirebooter10487122512194559164 .jar C:\Users\ESE\AppData\Local\Temp\surefire8945284040995119689 2020-10-03T22-38-15_705-jvmRun1 surefire8445944312646886691tmp surefire_01288502121873472979tmp" [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-15\bin\java" -javaagent:C:\\Users\\ESE\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-runt ime.jar=destfile=C:\\Users\\ESE\\IdeaProjects\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\ESE\AppData\Local\Temp\surefire8945284040995119689\surefirebooter10487122512194559164 .jar C:\Users\ESE\AppData\Local\Temp\surefire8945284040995119689 2020-10-03T22-38-15_705-jvmRun1 surefire8445944312646886691tmp surefire_01288502121873472979tmp" [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:64) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564) [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:64) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564) [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 상기 에러 발생하는데 구글링을 해봐도 번역을해봐도 스텍오버플로우 글을 뒤져봐도 도저히 해결할수가없습니다 도와주세요 ... 답보다 해결방법을 알고싶습니다 도와주세요 고수님들 윈도우 사용자입니다....
- 미해결예제로 배우는 스프링 입문 (개정판)
소스받고 pom.xml 에러나는데 몇시간째 어찌저찌 하는데 다 안되네요...
인텔리제이는 아니고 이클립스에서 하는데, cmd창에서 명령어도 다 쳤고, 빌드 패스도 잡아줬고 메이븐 업데이트도 했고 별거 다해봤는데 오류 안풀리네요. 저 플러그인을 못찾는다고만 나오네요. 어떻게 해결해야될까요??
- 미해결예제로 배우는 스프링 입문 (개정판)
깃 주소 다큐먼트에 남겨주셨다고 하는데 어디서 확인하나요?
스프링 예제 프로젝트 PetClinic 프로젝트 설정 1분 14초에 하신말씀인데, 다큐먼트 어디서 확인하면 될까요? 인프런이 처음이라 무슨말씀이신지 잘 모르겠어요.
- 미해결예제로 배우는 스프링 입문 (개정판)
안녕하세요,기선님. age컬럼 추가시 problem이 발생합니다.
왜 이런 문제들이 발생할까요? 구글링 해보니, 문제없이 실행되기때문에 무시하고 인텔리J 설정을 변경하라고 나오기도하던데, 신경안써도 되는부분인가요?