NEW SPRING BOOT MVC APP CREATED, ENJOY IT
Important!!!!! First of all you have to install with "mvn install" modules "mylab-parent-pom" and after "mvn install" of module "mylab-core".
run spring-boot-mvc-web-example module with maven "mvn spring-boot:run" and access to http://localhost:9090/pizza and user: "[email protected]" and password "[email protected]".You can create other users with ROLE_USER at add user left menu option.
- Spring boot MVC with Spring Security Access
- I18n
- Responsive Bootstrap css witn Tiles 3
- Password encoding with Bcrypt BCRYPT password encoding
- Unit Testing and Integration Testing with spring-boot-starter-test dependency (all dependecies are transitive like mockito junit etc...)
If you want to access to Rest Service with Spring boot module "spring-boot-mvc" first run mvn spring-boot:run:
- http://localhost:9090/base (get list of all bases)
- http://localhost:9090/base/1 (get base info with id=1)
- http://localhost:9090/base/1 (delete base info with id=1)
- http://localhost:9090/base (post create new base sending json info. Example "name":"rolling pizza" )
- http://localhost:9090/base (update update existing base sending json info. Example {"name":"rolling pizza 2","id":1})
When you run Spring boot app Spring actuator add features to monitore your services:
- (get) http://localhost:9091/manage/metrics (Spring Boot Actuator includes a metrics service with “gauge” and “counter” support. A “gauge” records a single value; and a “counter” records a delta (an increment or decrement). Metrics for all HTTP requests are automatically recorded, so if you hit the metrics endpoint should see a sensible response.)
- (get) http://localhost:9091/manage/health (you can check if your app is available)
- (get) http://localhost:9091/manage/mappings (list of your app HTTP endpoints)
- (post) http://localhost:9091/manage/shutdown (list of your app HTTP endpoints)
More info about Spring Actuator at: Spring Actuator