GithubHelp home page GithubHelp logo

dpecos / spring-boot-playground Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 19 KB

SpringBoot application to setup and test different starter modules

Java 100.00%
spring-boot spring-boot-starter-web spring-boot-starter-actuator

spring-boot-playground's Introduction

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:

Features:

  • 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:

Features:

  • 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:

Features:

  • Adds security defaults for a web application
  • Supports MVC & WebFlux modules
  • Oauth2
  • Adds actuator security

spring-boot-starter-test

Links:

Features:

  • 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:

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

spring-boot-playground's People

Contributors

dpecos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.