일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Python
- Spring Boot
- ubuntu
- MSSQL
- Core Java
- Open Source
- JavaScript
- IntelliJ
- jpa
- 설정
- 오픈소스
- Docker
- oracle
- SpringBoot
- spring
- Eclipse
- STS
- myBatis
- Source
- Thymeleaf
- MySQL
- 문서
- Tomcat
- Exception
- error
- PostgreSQL
- maven
- git
- AJAX
- JDBC
- Today
- Total
목록Spring Boot Framework (57)
헤르메스 LIFE
제가 궁금한 모든 예제. 감사합니다. 출처 : https://medium.com/@odysseymoon/spring-data-jpa%EC%97%90%EC%84%9C-groupby-%EC%B2%98%EB%A6%AC%ED%95%98%EA%B8%B0-82cddc6e5d4a Spring Data JPA에서 GroupBy 처리하기 Spring Data JPA에서는 GroupBy 를 사용하려면 어떻게 해야 할까요? Reference Doc 에서도 Group By 관련 키워드는 찾아보기 힘듭니다. Group By를 이용하려면 다른 방식을 적용해야 하는데요, Spring… medium.com Spring Data JPA에서는 GroupBy 를 사용하려면 어떻게 해야 할까요? Reference Doc 에서도 Group ..
Spring Boot의 버전에 따라 application properties 파일의 설정 경로가 약간 다르게 변했습니다. 확인 해봐야 합니다. yml 설정을 properties 설정으로 또는 properties 설정을 yml 설정으로 변경하는 Util 페이지 https://env.simplestep.ca/ Environment Variable Generator env.simplestep.ca Spring Boot 2.1.5 버전 ( https://docs.spring.io/spring-boot/docs/2.1.5.RELEASE/reference/html/common-application-properties.html ) Appendix A. Common application properties Append..
일반적인 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 :..
출처 : 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..
내장 Tomcat 의 Port 번호를 변경하는 방법 여러가지 입니다. 정리 해 둡니다. 1, 설정파일 변경 ( 가장 쉬움 ) application.properties #Server port server.port=8081 application.yml #Server port server: port: 9091 2, 프로그램 환경 설정 2-1. DefaultProperties 설정 package simple.spring; import java.util.Collections; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.spr..