├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── LICENSE ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── example │ │ └── demo │ │ ├── Application.java │ │ ├── controller │ │ ├── AdminController.java │ │ ├── HelloController.java │ │ ├── MemoController.java │ │ ├── PreLoginController.java │ │ └── UserController.java │ │ ├── entity │ │ ├── Memo.java │ │ └── User.java │ │ ├── repository │ │ ├── MemoRepository.java │ │ └── UserRepository.java │ │ ├── security │ │ ├── SecurityConfig.java │ │ ├── SimpleAccessDeniedHandler.java │ │ ├── SimpleAuthenticationEntryPoint.java │ │ ├── SimpleAuthenticationFailureHandler.java │ │ ├── SimpleAuthenticationSuccessHandler.java │ │ ├── SimpleLoginUser.java │ │ └── SimpleUserDetailsService.java │ │ └── service │ │ ├── MemoService.java │ │ ├── UserService.java │ │ └── impl │ │ ├── MemoServiceImpl.java │ │ └── UserServiceImpl.java └── resources │ ├── application.yml │ ├── import.sql │ └── scripts │ └── sql │ ├── create_database.sql │ ├── create_memo_table.sql │ ├── create_user.sql │ ├── create_user_table.sql │ ├── insert_memo_data.sql │ └── insert_user_data.sql └── test ├── java └── com │ └── example │ └── demo │ ├── ApplicationTests.java │ ├── controller │ ├── AdminControllerTests.java │ ├── HelloControllerIntegrationTests.java │ ├── HelloControllerTests.java │ ├── MemoControllerIntegrationTests.java │ ├── MemoControllerTests.java │ ├── UserControllerIntegrationTests.java │ └── UserControllerTests.java │ └── repository │ └── UserRepositoryTests.java └── resources └── .gitkeep /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/example/demo/Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/Application.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/controller/AdminController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/controller/AdminController.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/controller/HelloController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/controller/HelloController.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/controller/MemoController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/controller/MemoController.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/controller/PreLoginController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/controller/PreLoginController.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/controller/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/controller/UserController.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/entity/Memo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/entity/Memo.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/entity/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/entity/User.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/repository/MemoRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/repository/MemoRepository.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleAccessDeniedHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleAccessDeniedHandler.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleAuthenticationEntryPoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleAuthenticationEntryPoint.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleAuthenticationFailureHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleAuthenticationFailureHandler.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleAuthenticationSuccessHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleAuthenticationSuccessHandler.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleLoginUser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleLoginUser.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/security/SimpleUserDetailsService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/security/SimpleUserDetailsService.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/service/MemoService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/service/MemoService.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/service/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/service/UserService.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/service/impl/MemoServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/service/impl/MemoServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/example/demo/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/java/com/example/demo/service/impl/UserServiceImpl.java -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/application.yml -------------------------------------------------------------------------------- /src/main/resources/import.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/import.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/create_database.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/create_database.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/create_memo_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/create_memo_table.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/create_user.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/create_user.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/create_user_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/create_user_table.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/insert_memo_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/insert_memo_data.sql -------------------------------------------------------------------------------- /src/main/resources/scripts/sql/insert_user_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/main/resources/scripts/sql/insert_user_data.sql -------------------------------------------------------------------------------- /src/test/java/com/example/demo/ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/ApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/AdminControllerTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/AdminControllerTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/HelloControllerIntegrationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/HelloControllerIntegrationTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/HelloControllerTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/HelloControllerTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/MemoControllerIntegrationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/MemoControllerIntegrationTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/MemoControllerTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/MemoControllerTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/UserControllerIntegrationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/UserControllerIntegrationTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/controller/UserControllerTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/controller/UserControllerTests.java -------------------------------------------------------------------------------- /src/test/java/com/example/demo/repository/UserRepositoryTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rubytomato/demo-security-spring2/HEAD/src/test/java/com/example/demo/repository/UserRepositoryTests.java -------------------------------------------------------------------------------- /src/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------