프로그래밍/Java 3

[Spring] Synology Nas https SSL 적용

시놀로지 https 적용되어 있는 사이트에 배포하기 위해서는 https ssl을 적용시켜줘야한다. 제어판 > 보안 > 인증서 > 인증서 내보내기 받은 파일 경로에 .pem 파일이 있다. spring 에서는 .pem 파일을 인식하지 못하므로 .p12 파일로 변환이 필요하다. 받은 파일 경로에서 openssl pkcs12 -export -inkey [다운받은privkey.pem] -in [다운받은cert.pem] -out [원하는파일명.p12] 실행하면 비밀번호를 지정 후 원하는파일명.p12 가 생성된다. 파일을 spring 프로젝트의 application.properties 와 같은 위치에 복사 후 application.properties 파일에 내용 추가작성 #SSL server.ssl.key-store..

[Spring]Spring Boot Devtools 설정

예시-IntelliJ 1. Spring Boot Devtools Dependencies 추가 하단의 Dependencies에서 spring-boot-devtools 검색 후 Add 버튼으로 의존성 추가 2. Allow auto-make to start even if developed application is currently running 체크 Preferences > Advanced Settings > Compiler : Allow auto-make to start even if developed application is currently running 체크 3. Build project automatically 체크 Preferences > Build, Execution, Deployment > ..

[Spring]SpringBoot Build

https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%9E%85%EB%AC%B8-%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8/lecture/49574?tab=note&volume=1.00&quality=1080&speed=1.25 스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술 - 인프런 | 학습 페이지 지식을 나누면 반드시 나에게 돌아옵니다. 인프런을 통해 나의 지식에 가치를 부여하세요.... www.inflearn.com 프로젝트명 경로에서 ./gradlew clean build 이후 '프로젝트명/build/libs' 확인하면 jar파일이 있다 java -jar 파일명 하면 스프..