spring-boot-starter-security 설정 > 스프링 부트

본문 바로가기

[개발] spring-boot-starter-security 설정

필기자
2022-10-25 16:47 2,863 0

본문

spring-boot-starter-security 의존성 추가

pom.xml 에 다음 내용 확인 또는 추가



        <!--security 의존성 추가-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <!--security 의존성 추가-->

 

http://localhost:8080/thymeleaf/ex07 접속

 

20221101134407_58c21c62e2e6f71b42558e4bc6ecc1e2_aaim.png

 

ID : user

PW 는 아래에

 

20221025165111_77e1679e6557268cbe4071a20bc8b7db_6i4u.png

 

20221101134436_58c21c62e2e6f71b42558e4bc6ecc1e2_eshb.png

 

로그아웃 실행

http://localhost:8080/logout

 

20221101134514_58c21c62e2e6f71b42558e4bc6ecc1e2_lwxn.png

댓글목록0

등록된 댓글이 없습니다.
게시판 전체검색