일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- MSSQL
- STS
- AJAX
- git
- 오픈소스
- Open Source
- 문서
- Core Java
- Eclipse
- myBatis
- 설정
- Thymeleaf
- JDBC
- spring
- Docker
- JavaScript
- jpa
- PostgreSQL
- SpringBoot
- MySQL
- Source
- ubuntu
- Tomcat
- Python
- IntelliJ
- oracle
- error
- maven
- Exception
- Spring Boot
- Today
- Total
목록Spring Boot (54)
헤르메스 LIFE
일반적인 yml 설정 - show-sql: true 는 System.out 으로 출력하기 때문에 효율이 좋지 않습니다. application.yml # Server port server: port: 9090 servlet: context-path: / spring: datasource: url: jdbc:h2:tcp://localhost/~/test;DB_CLOSE_ON_EXIT=FALSE driver-class-name: org.h2.Driver # H2 Database username: sa password: jpa: show-sql: true # System.out 으로 출력. logging.level.org.hibernate.SQL=debug 로 대체합니다. hibernate: # create :..
개발환경 : Spring Boot 2.7.9 Database : H2-2.1.214 JDK : 11.0.18 x64 JPA WARN 23-02-26 00:34:198[restartedMain] org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration.openEntityManagerInViewInterceptor[223]: - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view..
출처 : https://tecoble.techcourse.co.kr/post/2020-09-29-spring-properties-binding/ Spring Boot에서 properties 값 주입받기 개요 Spring Boot를 이용해서 어플리케이션을 만들다 보면 외부에서 특정 값들을 주입받아야 하는 경우가 있다. 예를 들면 AWS의 특정 컴포넌트를 사용하기 위한 secret key가 될 수도 있고 외부 API를 tecoble.techcourse.co.kr properties 에서 Value를 읽어오는 내용을 확인 하던 중 정리가 잘된 사이트를 발견했습니다. 일반적으로 @Value 로 읽어오곤 했는데, 좀 더 생각하고 값을 가져오는 계기가 되었습니다. 주인장님의 허락을 받고 글을 가져왔어야 하지만, 글..
개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.71 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.7.8 6. Thymeleaf 3.0.15 spring.servlet.multipart.enabled: 멀티파트 업로드 지원여부 (default: true) spring.servlet.multipart.file-size-threshold: 파일이 메모리에 기록되는 임계값 (default: 0B) spring.servlet.multipart.location: 업로드된 파일의 임시 저장 공간 spring.servlet.multipart.max-file-size: 파일의 최대 사이즈..
개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.71 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.7.8 6. Thymeleaf 3.0.15 pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.8 simple.spring AppSpringBoot 0.0.1-SNAPSHOT AppSpringBoot Simple Spring Boot Project 11 org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot..
개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.71 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.7.8 6. Thymeleaf 3.0.15 pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.8 simple.spring SimpleSpringBoot 0.0.1-SNAPSHOT SimpleSpringBoot Simple Spring Boot Project 11 org.springframework.boot spring-boot-starter-jdbc org.springframework.boot sprin..
개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.71 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.7.8 6. Thymeleaf 3.0.15 pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.8 simple.spring SimpleSpringBoot 0.0.1-SNAPSHOT SimpleSpringBoot Simple Spring Boot Project 11 org.springframework.boot spring-boot-starter-jdbc org.springframework.boot sprin..
개발환경 1. STS 버전 : 4.13.1 2. JDK 버전 : OpenJDK 11.0.14_9_x64 3. Tomcat 버전 : 9.0.56 4. Maven 버전 : 3.8.4 5. Spring 버전 : Spring Boot 2.7.8 9. Thymeleaf 3.0.15 2023-01-29 11:00:28.709 ERROR 19620 --- [nio-8081-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thyme..
출처 : https://dejavuhyo.github.io/posts/encrypt-configuration-file-in-springboot/ Spring Boot 설정파일 암호화 1. Jasypt Jasypt(Java Simplified Encryption)는 개발자가 암호화 작동 방식에 대한 깊은 지식 없이도 최소한의 노력으로 자신의 프로젝트에 기본 암호화 기능을 추가할 수 있도록 하는 Java 라이브러리이다. dejavuhyo.github.io 1. Jasypt Jasypt(Java Simplified Encryption)는 개발자가 암호화 작동 방식에 대한 깊은 지식 없이도 최소한의 노력으로 자신의 프로젝트에 기본 암호화 기능을 추가할 수 있도록 하는 Java 라이브러리이다. 2. 암호화 설정 ..
개발환경 Spring Boot Spring Security ... 제 프로젝트에 Swagger를 사용하기 위해 셋팅을 해 봤는데, http://localhost:8080/swagger-ui.html 접속이 안되고 있습니다. 원인은 Spring Security 가 접속을 막는 듯 보여집니다. 심규남님의 소스를 통해서 잘 되는 소스를 이용해서 제가 원하는 환경을 테스트 할 수 있었습니다. 1. @EnableWebMvc 와 WebMvcConfigurer 의 관계를 공부할 수 있었습니다. 2. @EnableSwagger2를 반드시 넣어줘야 합니다. 3. addResourceHandlers 함수를 Override 해줘야 합니다. @Configuration @EnableWebMvc // spring-security..