Blog

[Spring][iLanD] 기초 프로젝트 구조 생성 및 의존성 주입, 테스트

Category
Author
Tags
PinOnMain
1 more property
SpringBoot 프로젝트 구조 생성
HomeController를 통한 메인페이지 HTTP요청 접근 상태 확인
의존성 주입
dependencies { //SpringBoot AOP implementation 'org.springframework.boot:spring-boot-starter-aop' //THYMELEAF implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' //JWT compileOnly group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5' runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5' runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5' //SpringBoot JPA implementation 'org.springframework.boot:spring-boot-starter-data-jpa' //SpringBoot Security implementation 'org.springframework.boot:spring-boot-starter-security' //SpringBoot Thymeleaf implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' //SpringBoot Validation implementation 'org.springframework.boot:spring-boot-starter-validation' //SpringBoot WEB implementation 'org.springframework.boot:spring-boot-starter-web' //SpringBoot Thymleaf Security implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6' //Lombok compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' //MySQL runtimeOnly 'com.mysql:mysql-connector-j' //JSON implementation 'org.json:json:20230227' //SpringBoot Test testImplementation 'org.springframework.boot:spring-boot-starter-test' //SpringBoot Security Test testImplementation 'org.springframework.security:spring-security-test' }
Shell
복사