├── .gitignore ├── README.md ├── file ├── 403.png ├── admin.png ├── home.png ├── index.png ├── login.png └── logout.png ├── pom.xml └── src ├── main ├── java │ └── org │ │ └── inlighting │ │ └── security │ │ ├── SecurityDemoApplication.java │ │ ├── controller │ │ ├── ErrorController.java │ │ ├── IndexController.java │ │ └── UserController.java │ │ ├── security │ │ ├── CustomUserDetailsService.java │ │ ├── IsAdmin.java │ │ ├── IsEditor.java │ │ ├── IsReviewer.java │ │ ├── IsUser.java │ │ └── SecurityConfig.java │ │ └── service │ │ ├── CustomUser.java │ │ ├── Database.java │ │ └── UserService.java └── resources │ ├── application.properties │ └── templates │ ├── 403.html │ ├── 404.html │ ├── 500.html │ ├── index │ ├── index.html │ ├── login.html │ └── logout.html │ └── user │ ├── admin.html │ ├── editor.html │ ├── home.html │ └── reviewer.html └── test └── java └── org └── inlighting └── security └── SecurityDemoApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | target/ 3 | *.iml 4 | */.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/README.md -------------------------------------------------------------------------------- /file/403.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/403.png -------------------------------------------------------------------------------- /file/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/admin.png -------------------------------------------------------------------------------- /file/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/home.png -------------------------------------------------------------------------------- /file/index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/index.png -------------------------------------------------------------------------------- /file/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/login.png -------------------------------------------------------------------------------- /file/logout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/file/logout.png -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/SecurityDemoApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/SecurityDemoApplication.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/controller/ErrorController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/controller/ErrorController.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/controller/IndexController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/controller/IndexController.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/controller/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/controller/UserController.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/CustomUserDetailsService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/CustomUserDetailsService.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/IsAdmin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/IsAdmin.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/IsEditor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/IsEditor.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/IsReviewer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/IsReviewer.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/IsUser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/IsUser.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/security/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/security/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/service/CustomUser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/service/CustomUser.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/service/Database.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/service/Database.java -------------------------------------------------------------------------------- /src/main/java/org/inlighting/security/service/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/java/org/inlighting/security/service/UserService.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.thymeleaf.cache=false -------------------------------------------------------------------------------- /src/main/resources/templates/403.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/403.html -------------------------------------------------------------------------------- /src/main/resources/templates/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/404.html -------------------------------------------------------------------------------- /src/main/resources/templates/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/500.html -------------------------------------------------------------------------------- /src/main/resources/templates/index/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/index/index.html -------------------------------------------------------------------------------- /src/main/resources/templates/index/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/index/login.html -------------------------------------------------------------------------------- /src/main/resources/templates/index/logout.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/index/logout.html -------------------------------------------------------------------------------- /src/main/resources/templates/user/admin.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/user/admin.html -------------------------------------------------------------------------------- /src/main/resources/templates/user/editor.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/user/editor.html -------------------------------------------------------------------------------- /src/main/resources/templates/user/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/user/home.html -------------------------------------------------------------------------------- /src/main/resources/templates/user/reviewer.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/main/resources/templates/user/reviewer.html -------------------------------------------------------------------------------- /src/test/java/org/inlighting/security/SecurityDemoApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo/HEAD/src/test/java/org/inlighting/security/SecurityDemoApplicationTests.java --------------------------------------------------------------------------------