spring boot security 自定義登陸驗證(jdbc)

首先加入依賴: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>然後在spring boot 的main 的啓動類中加入 @EnableWebSecurity 這就可以了,下面我們來寫一個ja
相關文章
相關標籤/搜索