https://github.com/sexyflowermins/class_green_blog_v2
2.7.10 버전이 11 버전으로 바뀌어 URL 에서 수정하여 프로젝트를 세팅한다
dependencies {
// 의존성 추가 설정 start
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'
implementation 'javax.servlet:jstl'
implementation 'org.springframework.security:spring-security-taglibs:5.6.2'
// https://mvnrepository.com/artifact/org.springframework.security/spring-security-taglibs
// 의존성 추가 설정 end
// implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
//runtimeOnly 'com.mysql:mysql-connector-j'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
시큐리티 보안을 사용하면 로그인 페이지를 만들지 않아도 보안에 걸려
자동적으로 로그인페이지가 생성 되는 모습을 볼수 있다
비번의 값은 콘솔 창에 password 라고 나오고 username 값은 대부분 user 이다
'Spring boot > Spring boot 3단원 JPA & Security' 카테고리의 다른 글
JSP 연결 , yml 파일 추가 설정 (0) | 2023.05.10 |
---|---|
yml 기본개념 (0) | 2023.05.10 |
mysql 설정 및 yml 파일 설정 (0) | 2023.05.10 |