728x90 Spring40 웰컴 페이지 Hello hello src > resources > static에 index.html 파일을 만들어 위 내용을 기재하면 스프링은 어플리케이션이 실행 되었을 때 이 파일을 웰컴 페이지로 보여준다 2024. 1. 7. 스프링의 대표 라이브러리 스프링 부트 라이브러리spring-boot-start-webspring-boot-start-tomcat: 톰캣(WAS, 웹서버)spring-webmvc: 스프링 웹 MVCspring-boot-start:thymeleaf: 타임리프 탬플릿 엔진(View)spring-boot-start(공통) 스프링 부트 + 스프링 코어 + 로깅spring-bootspring-corespring-boot-starter-logginglogback, slf4j테스트 라이브러리spring-boot-starter-testjunit: 테스트 프레임워크mocktio: 목 라이브러리assertj: 테스트 코드를 좀 더 편하게 작성하게 도와주는 라이브러리spring-test: 스프링 통합 테스트 지원 2024. 1. 7. Spring 프로젝트 생성 스프링 3부터 자바17 이상을 권장하고 있다. 스프링 2는 자바11 이하로 사용한다 원하는 위치에 저장하고 압축을 푼다 인텔리제이를 프로젝트의 build.gradle을 찾아 실행 시킨다 실행 해보자 src > main > (프로젝트이름)Application을 찾아서 실행 해자 톰캣이 내장되어 있으니 잘 될것이다 2024. 1. 7. Spring Legacy 기본세팅 ( 2 ) [ 이전 글 ] Spring Legacy 기본세팅 ( 1 ) Spring Legacy 기본세팅 ( 1 ) cloakinghost.tistory.com Base Site https://docs.spring.io/spring-framework/docs Spring version 5.2.x https://docs.spring.io/spring-framework/docs/5.2.x/spring-framework-reference/ Spring version 5.3.x https://docs.spring.io/spring-framework/docs/5.3.x/reference/html 미완성 2023. 8. 14. Spring Legacy 기본세팅 ( 1 ) 2023. 8. 8. Advisor ( 2 ) Pointcut이 내장되어있는 Advisor .*to.* classicAroundAdvisor classicBeforeAdvisor logAfterReturningAdvice logAfterThrowingAdvice 2023. 8. 8. 이전 1 2 3 4 5 6 7 다음