https://github.com/dpecos/spring-boot-playground
SpringBoot application to setup and test different starter modules
https://github.com/dpecos/spring-boot-playground
spring-boot spring-boot-starter-actuator spring-boot-starter-web
Last synced: 3 months ago
JSON representation
SpringBoot application to setup and test different starter modules
- Host: GitHub
- URL: https://github.com/dpecos/spring-boot-playground
- Owner: dpecos
- Created: 2018-12-28T18:28:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T15:54:12.000Z (over 6 years ago)
- Last Synced: 2024-12-27T16:45:40.133Z (5 months ago)
- Topics: spring-boot, spring-boot-starter-actuator, spring-boot-starter-web
- Language: Java
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Spring Modules
A complete list of all the `starter` modules can be found here: https://github.com/spring-projects/spring-boot/tree/master/spring-boot-project/spring-boot-starters
Reference docs: https://docs.spring.io/spring-boot/docs/current/reference/html/
## spring-boot-devtools
Links:
- https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.htmlFeatures:
- Sets up some property defaults
- Automatic restart when files in classpath change
- Livereload
- Global settings using a file in user's $HOME
- Can be used with remote applications## spring-boot-starter-web
https://www.baeldung.com/spring-boot-starters (Section 2)
Features:
- Adds support for HTTP / REST controllers## spring-boot-actuator
Links:
- https://www.baeldung.com/spring-boot-actuators
- https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-endpoints
- https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-security.html#boot-features-security-actuatorFeatures:
- Actuator endpoints have to be enabled and exposed to be able to interact with them.
- Shutdown endpoint has to be explicitly enabled: `management.endpoint.shutdown.enabled=true`These endpoints can be secured with `spring-boot-starter-security`.
`http :8080/actuator/health --auth user:password`
Note: these credentials are setup by `spring-boot-starter-security`
### git details
`info` actuator's endpoint will expose information about git repository if a `git.properties` file is found in the root
of the classpath. That file can be generated with the `git-commit-id-plugin` plugin:`http :8080/actuator/info --auth user:password`
In order to show full git details, the following property must be set:
`management.info.git.mode=full`
## spring-boot-starter-security
Links:
- https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-security.html
- https://docs.spring.io/spring-security/site/docs/5.1.2.RELEASE/reference/html/Features:
- Adds security defaults for a web application
- Supports MVC & WebFlux modules
- Oauth2
- Adds actuator security## spring-boot-starter-test
Links:
- https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-testing.html
- https://www.baeldung.com/rest-assured-tutorialFeatures:
- `spring-boot-starter-test` provides `@SpringBootTest` to setup web tests
- RestAssured is the library chosen to express web tests (it's important to setup the port the application has picked up)## ProjectLombok
Links:
- https://projectlombok.org/Features:
- Provides annotations that generate a lot of boiler-plate code:
- `@Log`
- `@Data` == `@ToString`, `@EqualsAndHashCode`, `@Getter` on all fields, and `@Setter` on all non-final fields, and `@RequiredArgsConstructor`