https://github.com/benhunter/spring-security-dependency
https://github.com/benhunter/spring-security-dependency
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/benhunter/spring-security-dependency
- Owner: benhunter
- Created: 2023-02-23T02:24:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T02:26:47.000Z (over 3 years ago)
- Last Synced: 2025-06-06T19:11:23.038Z (about 1 year ago)
- Language: Java
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Before Spring Security Dependency
1. Created a Spring app with Spring Initializr.
2. Added the Spring Boot Starter Web. Spring Boot Starter Test comes automatically. See `build.gradle`.
3. Create a `@RestController` - `HomeResource.java`
4. Build and run. `./gradlew build bootrun`
5. Go to `localhost:8080` in a web browser.
6. Notice no authentication is required to view the page.
# After Spring Security Dependency
1. In `gradle.build` add Spring Boot Starter Security.
2. Build and run. `./gradlew build bootrun`
3. Go to `localhost:8080` in a web browser.
4. See the redirect to a form login page.
5. Notice in the Spring log output shows a DefaultSecurityFilterChain was added. A generated