개발/Spring Boot12 8. Spring Security 설정 1. pom.xml 설정 org.springframework.boot spring-boot-starter-security org.springframework.security spring-security-taglibs 5.4.2 2. Config 설정 package com.kangong.common.security.config; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import or.. 2021. 2. 12. 7.aop 설정 1. pom.xml 설정 org.springframework.boot spring-boot-starter-aop 2. LogAdvice 설정 package com.kangong.common.aop; import java.util.Arrays; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.springframework.stereotype... 2021. 2. 11. 6.thymeleaf 설정 1. pom.xml 설정 org.springframework.boot spring-boot-starter-thymeleaf 2. applicatoin.properties 설정 spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html spring.thymeleaf.cache=false spring.thymeleaf.view-names=thymeleaf/* 3. vo 설정 package com.kangong.sample.model; import java.time.LocalDateTime; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; i.. 2021. 2. 11. 5. Lombok 설정 1. lombok 다운로드 lombok 다운로드 https://projectlombok.org/download Download projectlombok.org 2. lombok 설치 다운로드한 폴더로 이동해서 아래 명령어로 lombok을 설치합니다. $ cd Download $ java -jar lombok.jar 인스톨러 실행됨. eclipse.exe 선택 후 [Install/Update] 버튼 선택 3. pom.xml 설정 org.projectlombok lombok 1.18.16 provided 4. VO 설정 package com.kangong.sample.model; import java.time.LocalDateTime; import lombok.AllArgsConstructor; import.. 2021. 2. 11. 이전 1 2 3 다음