Spring Boot POC - shows profile usage with external config, spring boot test run, jackson validation with hibernate validation annotations. Spring-boot, swagger, spring-mvc, assertJ, spring-profiles, hibernate validation, jackson
This is simple spring boot application to show how some technologies work together
technologies/patterns used
application settings are in /config file, split by profile.
to build application run:
mvn clean install
start spring boot application:
mvn spring-boot:run
java -jar target/basic-xml-parser-1.0.jar
com.sbapp.Application
class main
method manually from IDEDefault profile is dev
, for test test
. There is also prod profile enabled but it has no properties (add them to config/appplication-prod.properties
).
Application runs by default on port 8080.
To access swagger UI go to:
http://localhost:8080/swagger-ui.html
from here you can test application calls.