To start the 01-my-spring-security project, you can run:
./gradlew :01-my-spring-security:bootRun
To start the 02-method-security project, you can run:
./gradlew :02-method-security:bootRun
Preparation Environment Variables
cp 03-oauth/.envTemplate 03-oauth/.env
Then update the .env
file with your own values.
You can generate by creating credentials of OAuth Client ID.
- Application Type: Web Application
- Name:
Spring Security
(or any application name you want) - Authorized JavaScript origins: (Optional) We can leave it blank
- Authorized redirect URIs:
http://localhost:8080/login/oauth2/code/okta
To start the 03-oauth project, you can run:
./gradlew :03-oauth:bootRun
To start the 04-testing-with-junit5 project, you can run:
./gradlew :04-testing-with-junit5:bootRun
To start the 05-spring-security-test project, you can run:
For normal run (let's say it is implicitly production
):
./gradlew :05-spring-security-test:bootRun
For test
profile run:
./gradlew :05-configure-app:bootRun -Dspring.profiles.active=test
Or with the following command:
SPRING_PROFILES_ACTIVE=test ./gradlew :05-configure-app:bootRun
To try Event-Driven Architecture, you can run:
./gradlew 99-event-driven-arch:run
- See README
- See README
- See README
- See README
- See README