Tools

STS4로 Spring boot 시작 세팅

hamaganatanadda 2023. 9. 10. 22:55

1. spring starter project로 생성

spring initializr는 STS말고 다른 IDE 사용 시 

 

2.

gradle, maven, java version 확인

jar - jsp 쓰려면 추가 작업 필요, 스프링부트에서는 thymeleaf + 내장톰캣으로 사용 추천
war - jsp 사용가능, 기본 외장 톰캣이나 내장도 사용가능한듯

 

3.

Jdk 1.8 기준 

2.7.15가 안정화 버전 중 최신

Dependencies를 선택하면 맞는 버전에 맞춰준다.

 

버전 맞춰준다는 링크
https://docs.spring.io/spring-boot/docs/current/reference/html/using.html#using.build-systems.dependency-management

 

Developing with Spring Boot

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

여기 있는 것만 맞춰주고.. 나중에 추가 시 라이브러리 호환성 버전 확인 가능

https://docs.spring.io/spring-boot/docs/2.7.15/reference/html/dependency-versions.html#appendix.dependency-versions

 

Dependency Versions

 

docs.spring.io

spring boot devtools: 자동리로드 외 다양한..

 

spring web: mvc, rest
spring web service: soap
https://stackoverflow.com/questions/39972171/difference-between-spring-boot-starter-web-and-spring-boot-starter-web-services

 

Difference between spring-boot-starter-web and spring-boot-starter-web-services and spring-boot-starter-jersey

What is the difference between: spring-boot-starter-web spring-boot-starter-web-services spring-boot-starter-jersey? The documentation says Starter for building RESTful web applications using JAX...

stackoverflow.com

war 내장, 외장 톰캣 사용으로 배포
https://hye0-log.tistory.com/29

 

[Spring Boot]war로 배포하기 (Gradle + 내/외장 톰캣)

JSP를 사용한 Spring boot프로젝트에서 gradle + 내/외장 톰캣을 이용하여 서비스 배포하는 과정을 정리하고자 한다. 이전 포스팅(hye0-log.tistory.com/28)에서 WAR를 이용하여 배포하는 방법은 간단하다고

hye0-log.tistory.com

spring Quartz 사용시와 스프링 스케줄 비교
https://stackoverflow.com/questions/4385719/spring-scheduling-scheduled-vs-quartz

 

Spring Scheduling: @Scheduled vs Quartz

I'm reading the Spring 3.0 docs regarding scheduling. I'm leaning towards Spring's JobDetailBean for Quartz. However, the @Scheduled annotation has captured my eye. It appears this is another way of

stackoverflow.com