Copied from other place. I have changed gradle to pom and updated spring-boot version for 2.0.0.RELEASE
This project demonstrates usage of Spring-Boot with Spring-Security using Java configuration with Integration Tests
Any more you can read original author Technical Blog(http://www.future-processing.pl/blog/exploring-spring-boot-and-spring-security-custom-token-based-authentication-of-rest-services-with-spring-security-and-pinch-of-spring-java-configuration-and-spring-integration-testing/)
mvn clean install
mvn spring-boot:run
- Point your browser to https://localhost:8443/health