GET /hello
– Secured endpoint that returns "Hello World"- Login using username:
test
and password:123456
- Uses Spring Security with in-memory authentication
mvn spring-boot:run
Then visit:
http://localhost:8080/hello
You'll be redirected to /login
, use credentials test / 123456
.