월 22,000원
5개월 할부 시다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결스프링 부트 개념과 활용
mvn install시 아래와 같은 에러 발생하시는분들
Source option 5 is no longer supported. Use 7 or later. Target option 5 is no longer supported. Use 7 or later. 이런 에러가 발생하시는분들은 compile을 상위의 자바버전으로 수행하도록 아래내용을 pom.xml추가해주시면 될 것 같습니다. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins></build>
- 해결됨스프링 부트 개념과 활용
profile 적용 관련 질문입니다.
application.properfies file을 통해 profile을 지정하면 지정된 profile로 application이 실행되는 것을 확인했습니다. 하지만 command line이나 Run/Debug Configurations의 program arguments에 --spring.profiles.active 옵션을 아무리 바꿔도 application.properties file에서 지정한 profile로만 동작합니다. mvn clean package로 다시 패키징 했지만 여전히 동일한 문제가 발생합니다. 제가추가적으로 확인해봐야 할 사항이 있는지요?
- 해결됨스프링 부트 개념과 활용
maven install시 java.lang.NoClassDefFoundError가 납니다
pom.xml 파일은 다음과 같습니다. 이유를 알 수 있을까요?
- 해결됨스프링 부트 개념과 활용
Test 클래스가 여러개 일경우 어떻게 한꺼번에 실행하나요?
스크린샷처럼 각 계층별로 테스트 클래스를 둔다면 인텔리제이로 한번 실행으로 전체 테스트 하게 할 수 있나요?
- 스프링 부트 개념과 활용
이전 강의부터 지금강의에 있는 springinit 파일 경로
삭제된 글입니다
- 미해결스프링 부트 개념과 활용
요청에 대한 질문이 있습니다.
클라이언트가 보낸 요청에 관한 것 인데요 @PutMapping 이나 (클라이언트의 요청이 put일경우) 컨텐츠타입헤더가 Json 이거나 이러한 클라이언트의 '요청'은 개발자가 작성 할 때 어떻게 하나요...? 예를 들어 put의 경우 put이라는 요청이 들어 올 때 수정을 한다고 치면 개발 할 때 클라이언트가 이 버튼을 누르면 put요청이 들어온다 혹은 클라이언트의 요청이 JSON 이라는 것을 (클라이언트는 버튼을 누른다던가, url을 입력한다던가 식으로 요청을 하는데 이러한 버튼을 누르면 JSON 요청이야 ! 라는 것) 어떻게 하나요..? 너무 두리뭉실한 질문 죄송합니다 선생님 ㅠ
- 미해결스프링 부트 개념과 활용
properties를 yml로 바꿔도 우선순위가 적용이 되나요?
질문 남겨봅니다!
- 미해결스프링 부트 개념과 활용
선생님 static 의 기본 캐싱전략의 유지 시간은 몇초인가요?
암만찾아봐도 처음에 세팅되어 있는 기본전략이 몇초인지 모르겠습니다
- 미해결스프링 부트 개념과 활용
웹jars가 잘 작동하지 않습니다. ㅠ
because its MIME type ('application/json') is not a supported stylesheet MIME type, and strict MIME checking is enabled. 밑의 코드로 해보았는데 위의 에러가 뜨네요.. 메이븐 파일에 잘 추가되어있는거는 다 확인했습니다! 경로도 10번정도 체크했습니다 <link rel="stylesheet" href="/webjars/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="/webjars/bootstrap/3.3.7/css/bootstrap-theme.min.css">
- 미해결스프링 부트 개념과 활용
Application 프로젝트에 의존성 추가 후 에러 ㅠㅠㅠ
기선님 처럼 Application 클래스가 존재하는 프로젝트 pom.xml 파일에 의존성을 추가한 후 maven 리로드 해서 .jar파일이 임포트 된것을 확인했고 spring.factories에서 key값도 추가된것을 확인했습니다만 @Autowired로 불러오려니 인식을 못하고 자꾸 import class만 하라고 합니다. 어떻게 해야할까요 ㅠㅠㅠㅠ
- 미해결스프링 부트 개념과 활용
mvn, gradle 관련 레퍼런스 추천 부탁드립니다.
springboot 를 학습하기에 충분한 수준으로 mvn이나 gradle 에 대해서 학습하고자 합니다. 혹시 좋은 강사님꼐서 추천해주실만한 레퍼런스가 있을까요?
- 미해결스프링 부트 개념과 활용
메이븐 install시 에러가 납니다..
메이븐에서 install을 하려고 했는데 아래와같이 인코딩 관련 에러가 납니다. pom.xml에서 EUC-KR로 바꿔줘도 그런데 왜그럴까요? 메이븐 re import 해봐도 똑같습니다..
- 미해결스프링 부트 개념과 활용
AnnotationConfigurationException 에러 질문드려요
첫번째 package me.practice;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); }} 소스를 실행시키니 맨 아래와 같은 메시지가 나왔습니다. pom.xml 은 아래와 같습니다. 검색해봐도 새로운 spring boot버전에 proxyBeanMethods가 추가되어서 변경해야한다고 하는데 spring은 처음이라 잘 모르겠습니다.ㅠ 어떻게 해야할까요? 개발환경은 Window 입니다. ----------------------------- 에러 수정했습니다. 아래 spring boot 버전을 올리니 해결이 되네요 ㅠㅠ <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>SpringBoot Practice</artifactId> <version>1.0-SNAPSHOT</version> <!-- Inherit defaults from Spring Boot --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> </parent> <!-- Add typical dependencies for a web application --> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure</artifactId> <version>2.2.5.RELEASE</version> </dependency> </dependencies> <!-- Package as an executable jar --> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build></project> org.springframework.core.annotation.AnnotationConfigurationException: Attribute 'proxyBeanMethods' in annotation [org.springframework.boot.autoconfigure.SpringBootApplication] is declared as an @AliasFor nonexistent attribute 'proxyBeanMethods' in annotation [org.springframework.context.annotation.Configuration].; nested exception is java.lang.NoSuchMethodException: org.springframework.context.annotation.Configuration.proxyBeanMethods() at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.<init>(AnnotationUtils.java:2180) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.from(AnnotationUtils.java:2148) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.getOtherDescriptors(AnnotationUtils.java:2312) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.getAttributeAliasNames(AnnotationUtils.java:2299) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils.getAttributeAliasNames(AnnotationUtils.java:1813) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils.getAttributeAliasMap(AnnotationUtils.java:1722) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotationUtils.postProcessAnnotationAttributes(AnnotationUtils.java:1335) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.annotation.AnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElementUtils.java:365) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.core.type.StandardAnnotationMetadata.getAnnotationAttributes(StandardAnnotationMetadata.java:121) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotationConfigUtils.attributesFor(AnnotationConfigUtils.java:285) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotationBeanNameGenerator.determineBeanNameFromAnnotation(AnnotationBeanNameGenerator.java:93) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotationBeanNameGenerator.generateBeanName(AnnotationBeanNameGenerator.java:72) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.doRegisterBean(AnnotatedBeanDefinitionReader.java:224) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.registerBean(AnnotatedBeanDefinitionReader.java:145) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.context.annotation.AnnotatedBeanDefinitionReader.register(AnnotatedBeanDefinitionReader.java:135) ~[spring-context-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:158) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:135) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.BeanDefinitionLoader.load(BeanDefinitionLoader.java:127) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.load(SpringApplication.java:717) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:392) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) ~[spring-boot-2.1.3.RELEASE.jar:2.1.3.RELEASE] at me.practice.Application.main(Application.java:8) ~[classes/:na] Caused by: java.lang.NoSuchMethodException: org.springframework.context.annotation.Configuration.proxyBeanMethods() at java.base/java.lang.Class.getDeclaredMethod(Class.java:2475) ~[na:na] at org.springframework.core.annotation.AnnotationUtils$AliasDescriptor.<init>(AnnotationUtils.java:2173) ~[spring-core-5.1.5.RELEASE.jar:5.1.5.RELEASE] ... 23 common frames omitted
- 미해결스프링 부트 개념과 활용
에러 질문입니다.
진행중인 프로젝트의 깃 주소는 https://github.com/Mosuhyeok/springError 이것입니다 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-05-01 17:13:21.571 ERROR 12500 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to execute ApplicationRunner 이 에러가 왜 뜨는지 잘 모르겠습니다.. H2runner 파일을 다 주석처리하고 실행하면 잘 되는데 주석을 해제하면 오류가 납니다.. 그리고 제가 여러 블로그들을 참고하며 crud 게시판을 구현 해보려고 하는 중인데 매번 데이터베이스 설정에서 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 이 에러가 자주 뜨는데 왜 그런걸까요...? --전체 에러코드-- 2020-05-01 17:28:49.482 INFO 7576 --- [ main] d.d.DemodlkfksdkfApplication : Starting DemodlkfksdkfApplication on DESKTOP-TLQC95G with PID 7576 (C:\Users\MoMoRing\Spring-Folder\demodlkfksdkf\target\classes started by MoMoRing in C:\Users\MoMoRing\Spring-Folder\demodlkfksdkf) 2020-05-01 17:28:49.484 INFO 7576 --- [ main] d.d.DemodlkfksdkfApplication : No active profile set, falling back to default profiles: default 2020-05-01 17:28:50.034 INFO 7576 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JDBC repositories in DEFAULT mode. 2020-05-01 17:28:50.048 INFO 7576 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 11ms. Found 0 JDBC repository interfaces. 2020-05-01 17:28:50.433 INFO 7576 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2020-05-01 17:28:50.439 INFO 7576 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2020-05-01 17:28:50.440 INFO 7576 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.33] 2020-05-01 17:28:50.510 INFO 7576 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2020-05-01 17:28:50.510 INFO 7576 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 985 ms 2020-05-01 17:28:50.535 INFO 7576 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2020-05-01 17:28:50.613 INFO 7576 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2020-05-01 17:28:50.617 INFO 7576 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testdb' 2020-05-01 17:28:50.781 INFO 7576 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-05-01 17:28:50.956 INFO 7576 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2020-05-01 17:28:50.958 INFO 7576 --- [ main] d.d.DemodlkfksdkfApplication : Started DemodlkfksdkfApplication in 1.715 seconds (JVM running for 2.21) jdbc:h2:mem:testdb SA 2020-05-01 17:28:50.964 INFO 7576 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-05-01 17:28:50.970 ERROR 7576 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to execute ApplicationRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:778) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:765) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:322) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] at d.demodlkfksdkf.DemodlkfksdkfApplication.main(DemodlkfksdkfApplication.java:10) ~[classes/:na] Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "CREATE TABLE USER (ID INTEGER NOT NULL, NAME VARCHAR(255), PRIMARY KEY (ID)) INSERT[*] INTO USER VALUES (1, ‘KEESUN’)"; SQL statement: CREATE TABLE USER (ID INTEGER NOT NULL, name VARCHAR(255), PRIMARY KEY (id)) INSERT INTO USER VALUES (1, ‘keesun’) [42000-200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:453) ~[h2-1.4.200.jar:1.4.200] at org.h2.message.DbException.getJdbcSQLException(DbException.java:429) ~[h2-1.4.200.jar:1.4.200] at org.h2.message.DbException.get(DbException.java:205) ~[h2-1.4.200.jar:1.4.200] at org.h2.message.DbException.get(DbException.java:181) ~[h2-1.4.200.jar:1.4.200] at org.h2.message.DbException.getSyntaxError(DbException.java:229) ~[h2-1.4.200.jar:1.4.200] at org.h2.command.Parser.getSyntaxError(Parser.java:1051) ~[h2-1.4.200.jar:1.4.200] at org.h2.command.Parser.prepareCommand(Parser.java:741) ~[h2-1.4.200.jar:1.4.200] at org.h2.engine.Session.prepareLocal(Session.java:657) ~[h2-1.4.200.jar:1.4.200] at org.h2.engine.Session.prepareCommand(Session.java:595) ~[h2-1.4.200.jar:1.4.200] at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1235) ~[h2-1.4.200.jar:1.4.200] at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:164) ~[h2-1.4.200.jar:1.4.200] at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:126) ~[h2-1.4.200.jar:1.4.200] at com.zaxxer.hikari.pool.ProxyStatement.executeUpdate(ProxyStatement.java:120) ~[HikariCP-3.4.2.jar:na] at com.zaxxer.hikari.pool.HikariProxyStatement.executeUpdate(HikariProxyStatement.java) ~[HikariCP-3.4.2.jar:na] at d.demodlkfksdkf.H2Runner.run(H2Runner.java:23) ~[classes/:na] at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:775) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE] ... 5 common frames omitted 2020-05-01 17:28:50.973 INFO 7576 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2020-05-01 17:28:50.974 INFO 7576 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2020-05-01 17:28:50.977 INFO 7576 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. Process finished with exit code 1
- 미해결스프링 부트 개념과 활용
안녕하세요 질문 몇개 드립니다.
1. 저는 이클립스로 해보고 있는데요. 같은 워크스페이스에서 메이븐 프로젝트로 configure 만들어서 jar 만들어 놓고 스프링 프로젝트에 의존성을 추가했습니다. 근데 jar가 아닌 아래 이미지처럼 나왔는데 프로젝트를 삭제하니 jar를 인식하더라구요. 같은 워크스페이스라 그럴까요? 이게 무엇때문에 안되는지 잘 모르겠어서 질문드립니다. 2. spring.factories 만들 때 강의 내용이랑 문서에 작성해놓으신 설정이 다른데 무슨 차이가 있을까요? org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ FQCN,\ FQCN------------------------------------------------------------- org.springframework.boot.autoconfiguration.EnableAutoCinfiguration=\ com.yoon.HolomanConfiguration
- 미해결스프링 부트 개념과 활용
/* 와 /**의 차이가 궁금합니다
안녕하세요 선생님. 구글링 한 결과 스택오버플로 사이트에서 * matches zero or more characters ** matches zero or more 'directories' in a path 이런 것을 얻을수 있는데 zero or more characters가 뭘 뜻하는 건지 이해가 잘 안되서 질문합니다... /*와 /**의 차이에 대해서 설명해주시면 감사하겠습니다
- 미해결스프링 부트 개념과 활용
강의 6:30부분경 질문입니다.
status, content print 는 알트 엔터 후import static method하면 다 되는데 get부분은 알트 엔터를 하고 import를 누르면 선생님 처럼 되지 않고 이렇게 뜨는데 어떻게 해결해야하나요?
- 해결됨스프링 부트 개념과 활용
선생님 강의 키보드 추적 이거 의도된건가요?
mvc 강의 부터 계속 이렇게 선생님이 누르는 키보드에 맞춰서 나오기는 하는데 이상한 문자도 계속 나오고... 의도하신건지?? 아님 제 컴퓨터 문제인지 잘모르겠습니다
- 미해결스프링 부트 개념과 활용
jdk 톰캣 버전설정 관련입니다.
properties에서 자바버전과 톰캣버전을 저렇게 명시를 해두면 로컬에서 설치 할 때 톰캣 버전을 8.0 으로 다운 받았어도 사용을 할 수 있는건가요...? 원리가 궁금합니다
- 미해결스프링 부트 개념과 활용
흐흐 OutputCapture deprecated 되었습니다.
https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/test/system/OutputCaptureRule.html OutputCaptureRule 사용하세요.