├── README.md ├── spring-security-demo ├── src │ └── main │ │ ├── resources │ │ └── application.properties │ │ └── java │ │ └── com │ │ └── lin │ │ ├── DemoApplication.java │ │ └── controller │ │ └── HelloController.java └── pom.xml ├── spring-security-app └── pom.xml ├── spring-security-browser └── pom.xml ├── LICENSE ├── spring-security-parent └── pom.xml └── spring-security-core └── pom.xml /README.md: -------------------------------------------------------------------------------- 1 | TODO 2 | -------------------------------------------------------------------------------- /spring-security-demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 2 | spring.datasource.url=jdbc:mysql://localhost:3309/spring-demo?useUnicode=yes&characterEncoding=UTF-8 3 | spring.datasource.username=root 4 | spring.datasource.password=mysql 5 | 6 | #暂时关闭集群session,后面再搞 7 | spring.session.store-type=none -------------------------------------------------------------------------------- /spring-security-demo/src/main/java/com/lin/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.lin; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /spring-security-demo/src/main/java/com/lin/controller/HelloController.java: -------------------------------------------------------------------------------- 1 | package com.lin.controller; 2 | 3 | import org.springframework.web.bind.annotation.GetMapping; 4 | import org.springframework.web.bind.annotation.RestController; 5 | 6 | @RestController 7 | public class HelloController { 8 | 9 | @GetMapping("/hello") 10 | public String hello() { 11 | return "hello spring security"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /spring-security-app/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | spring-security-app 4 | 5 | com.lin.security 6 | spring-security-parent 7 | 1.0.0-SNAPSHOT 8 | ../spring-security-parent 9 | 10 | 11 | 12 | 13 | com.lin.security 14 | spring-security-core 15 | ${lin.security.version} 16 | 17 | 18 | -------------------------------------------------------------------------------- /spring-security-demo/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | spring-security-demo 4 | 5 | com.lin.security 6 | spring-security-parent 7 | 1.0.0-SNAPSHOT 8 | ../spring-security-parent 9 | 10 | 11 | 12 | 13 | com.lin.security 14 | spring-security-browser 15 | ${lin.security.version} 16 | 17 | 18 | -------------------------------------------------------------------------------- /spring-security-browser/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | spring-security-browser 4 | 5 | com.lin.security 6 | spring-security-parent 7 | 1.0.0-SNAPSHOT 8 | ../spring-security-parent 9 | 10 | 11 | 12 | 1.3.5.RELEASE 13 | 14 | 15 | 16 | 17 | com.lin.security 18 | spring-security-core 19 | ${lin.security.version} 20 | 21 | 22 | org.springframework.session 23 | spring-session 24 | ${ver.spring.session} 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Lin。 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /spring-security-parent/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.lin.security 4 | spring-security-parent 5 | 1.0.0-SNAPSHOT 6 | pom 7 | 8 | 9 | 1.0.0-SNAPSHOT 10 | 11 | 12 | 13 | org.springframework.boot 14 | spring-boot-starter-parent 15 | 2.1.6.RELEASE 16 | 17 | 18 | 19 | 20 | 21 | 22 | org.springframework.cloud 23 | spring-cloud-dependencies 24 | Greenwich.SR2 25 | pom 26 | import 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | org.apache.maven.plugins 35 | maven-compiler-plugin 36 | 37 | 1.8 38 | 1.8 39 | UTF-8 40 | 41 | 42 | 43 | 44 | 45 | ../spring-security-app 46 | ../spring-security-browser 47 | ../spring-security-core 48 | ../spring-security-demo 49 | 50 | -------------------------------------------------------------------------------- /spring-security-core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | spring-security-core 4 | 5 | com.lin.security 6 | spring-security-parent 7 | 1.0.0-SNAPSHOT 8 | ../spring-security-parent 9 | 10 | 11 | 12 | 1.1.6.RELEASE 13 | 3.9 14 | 4.4 15 | 1.9.3 16 | 17 | 18 | 19 | 20 | org.springframework.cloud 21 | spring-cloud-starter-oauth2 22 | 23 | 24 | org.springframework.boot 25 | spring-boot-starter-data-redis 26 | 27 | 28 | org.springframework.boot 29 | spring-boot-starter-jdbc 30 | 31 | 32 | mysql 33 | mysql-connector-java 34 | 35 | 36 | 37 | org.springframework.social 38 | spring-social-config 39 | ${ver.spring.social} 40 | 41 | 42 | org.springframework.social 43 | spring-social-core 44 | ${ver.spring.social} 45 | 46 | 47 | org.springframework.social 48 | spring-social-security 49 | ${ver.spring.social} 50 | 51 | 52 | org.springframework.social 53 | spring-social-web 54 | ${ver.spring.social} 55 | 56 | 57 | org.apache.commons 58 | commons-lang3 59 | ${ver.commons.lang3} 60 | 61 | 62 | org.apache.commons 63 | commons-collections4 64 | ${ver.commons.collections4} 65 | 66 | 67 | 68 | commons-beanutils 69 | commons-beanutils 70 | ${ver.commons.beanutils} 71 | 72 | 73 | --------------------------------------------------------------------------------