spring-boot/spring-boot-samples
Stephane Nicoll dddea70985 Collect and display build information
This commit updates the Maven plugin to generate a
`META-INF/boot/build.properties` file with various build-specific
settings (group, artifact, name, version and build time). Additionally,
the plugin can be configured to write an arbitrary number of additional
properties.

A new `BuildProperties` bean is automatically exposed when such a file is
present. If that bean is present, an `InfoContributor` is automatically
created to expose that information under the `build` key.

As for the git contributor, it is possible to only display the core
settings or everything using the `management.info.build.mode` property.

See gh-2559
2016-03-10 17:21:31 +01:00
..
spring-boot-sample-activemq Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-actuator Collect and display build information 2016-03-10 17:21:31 +01:00
spring-boot-sample-actuator-log4j2 Polish 2016-03-03 09:14:24 -08:00
spring-boot-sample-actuator-noweb Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-actuator-ui Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-amqp Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-ant Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-aop Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-atmosphere Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-batch Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-cache Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-data-cassandra Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-couchbase Add missing copyright headers 2016-02-25 12:12:57 +00:00
spring-boot-sample-data-elasticsearch Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-gemfire Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-jpa Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-data-mongodb Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-redis Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-rest Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-data-solr Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-devtools Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-flyway Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-hateoas Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-hornetq Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-hypermedia Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-hypermedia-gson Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-hypermedia-jpa Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-hypermedia-ui Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-integration Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jersey Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-jersey1 Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jetty Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jetty-ssl Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jetty8 Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jetty8-ssl Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jetty93 Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jooq Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-jpa Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-jta-atomikos Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-jta-bitronix Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-jta-jndi Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-liquibase Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-logback Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-metrics-dropwizard Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-metrics-opentsdb Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-metrics-redis Move to constructor injection in simple configuration classes 2016-03-04 12:27:29 +00:00
spring-boot-sample-parent-context Upgrade to Spring Integration 4.3.0.M1 2016-02-17 16:42:39 +00:00
spring-boot-sample-profile Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-property-validation Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-secure Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-secure-oauth2 Polishing 2016-03-01 14:30:27 +00:00
spring-boot-sample-secure-oauth2-resource Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-servlet Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-session-redis Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-simple Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-testng Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-tomcat Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-tomcat-jsp Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-tomcat-multi-connectors Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-tomcat-ssl Fix packages and annotations used in sample 2016-02-22 10:29:43 -08:00
spring-boot-sample-tomcat7-jsp Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-traditional Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-undertow Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-undertow-ssl Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-velocity Deprecate support for Velocity 2016-03-07 13:48:17 +00:00
spring-boot-sample-war Move master to 1.4.0.BUILD-SNAPSHOT 2016-01-24 10:45:24 -08:00
spring-boot-sample-web-freemarker Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-groovy-templates Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-web-jsp Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-method-security Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-mustache Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-secure Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-secure-custom Fix packages and annotations used in sample 2016-02-22 10:29:43 -08:00
spring-boot-sample-web-secure-github Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-secure-jdbc Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-web-static Fix packages and annotations used in sample 2016-02-22 10:29:43 -08:00
spring-boot-sample-web-ui Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-web-velocity Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
spring-boot-sample-websocket-jetty Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-websocket-tomcat Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-websocket-undertow Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-ws Remove @Autowired from constructors where class has single constructor 2016-03-01 16:03:07 +00:00
spring-boot-sample-xml Upgrade copyright headers of all files changed in 2016 2016-02-25 12:09:42 +00:00
README.adoc Add Couchbase support 2016-02-16 09:31:50 +01:00
pom.xml Add Couchbase support 2016-02-16 09:31:50 +01:00

README.adoc

 The following java samples are provided:

* link:spring-boot-sample-simple[spring-boot-sample-simple]
  -- A simple command line application
* link:spring-boot-sample-tomcat[spring-boot-sample-tomcat]
  --  Embedded Tomcat
* link:spring-boot-sample-jetty[spring-boot-sample-jetty]
  -- Embedded Jetty
* link:spring-boot-sample-activemq[spring-boot-sample-activemq]
  -- Simple JMS consumer and producer using Apache ActiveMQ
* link:spring-boot-sample-actuator[spring-boot-sample-actuator]
  -- Simple REST service with production features
* link:spring-boot-sample-actuator-ui[spring-boot-sample-actuator-ui]
  -- A web UI example with production features
* link:spring-boot-sample-actuator-noweb[spring-boot-sample-actuator-noweb]
  -- A production features sample with no web application
* link:spring-boot-sample-actuator-log4j2[spring-boot-sample-actuator-log4j2]
  -- A production features sample using log4j 2 for logging (instead of logback)
* link:spring-boot-sample-cache[spring-boot-sample-cache]
  -- A web sample that uses Spring's cache abstraction
* link:spring-boot-sample-web-ui[spring-boot-sample-web-ui]
  -- A thymeleaf web application
* link:spring-boot-sample-web-static[spring-boot-sample-web-static]
  -- A web application serving static files
* link:spring-boot-sample-web-freemarker[spring-boot-sample-web-freemarker]
  -- A web application using Freemarker templates
* link:spring-boot-sample-web-velocity[spring-boot-sample-web-velocity]
  -- A web application using Velocity templates
* link:spring-boot-sample-web-groovy-templates[spring-boot-sample-web-groovy-templates]
  -- A web application using native Groovy templates
* link:spring-boot-sample-web-jsp[spring-boot-sample-web-jsp]
  -- A web application using JSP templates
* link:spring-boot-sample-web-tomcat-jsp[spring-boot-sample-tomcat-jsp]
  -- A web application using JSP templates with Tomcat 8
* link:spring-boot-sample-tomcat-multi-connectors[spring-boot-sample-tomcat-multi-connectors]
  -- A web application using multiple connectors in tomcat, showing how to customize the Tomcat server
* link:spring-boot-sample-web-secure[spring-boot-sample-web-secure]
  -- A web application with typical Security configuration enabling a login form
* link:spring-boot-sample-web-method-security[spring-boot-sample-web-method-security]
  -- A web application with Security configuration enabling global method security
* link:spring-boot-sample-secure[spring-boot-sample-secure]
  -- example showing Spring Security in a non-web application
* link:spring-boot-sample-servlet[spring-boot-sample-servlet]
  -- example showing a "raw" `Servlet` returning plaintext content
* link:spring-boot-sample-ws[spring-boot-sample-ws]
  -- A simple contract-first SOAP web service with Spring Web Services
* link:spring-boot-sample-websocket-jetty[spring-boot-sample-websocket-jetty]
  -- A web application with Websocket support on Jetty server
* link:spring-boot-sample-websocket-tomcat[spring-boot-sample-websocket-tomcat]
  -- A web application with Websocket support on Tomcat server
* link:spring-boot-sample-websocket-undertow[spring-boot-sample-websocket-undertow]
  -- A web application with Websocket support on Undertow server
* link:spring-boot-sample-flyway[spring-boot-sample-flyway]
  -- Example showing database migrations with Flyway
* link:spring-boot-sample-liquibase[spring-boot-sample-liquibase]
  -- Example showing database migrations with Liquibase
* link:spring-boot-sample-amqp[spring-boot-sample-amqp]
  -- Example showing message-oriented application using RabbitMQ
* link:spring-boot-sample-hornetq[spring-boot-sample-hornetq]
  -- Example showing message-oriented application using HornetQ
* link:spring-boot-sample-batch[spring-boot-sample-batch]
  -- Define and run a Batch job in a few lines of code
* link:spring-boot-sample-data-couchbase[spring-boot-sample-data-couchbase]
    -- Spring Data Couchbase repositories
* link:spring-boot-sample-data-jpa[spring-boot-sample-data-jpa]
  -- Spring Data JPA + Hibernate + HSQLDB
* link:spring-boot-sample-data-mongodb[spring-boot-sample-data-mongodb]
  -- Spring Data Mongo repositories
* link:spring-boot-sample-data-solr[spring-boot-sample-data-solr]
  -- Spring Data Solr repositories
* link:spring-boot-sample-data-redis[spring-boot-sample-data-redis]
  -- Simple usage of Spring Data Redis
* link:spring-boot-sample-data-rest[spring-boot-sample-data-rest]
  -- Crud repositories exposed as REST endpoints
* link:spring-boot-sample-integration[spring-boot-sample-integration]
  -- A spring integration application
* link:spring-boot-sample-profile[spring-boot-sample-profile]
  -- example showing Spring's `@profile` support
* link:spring-boot-sample-property-validation[spring-boot-sample-property-validation]
  -- example showing the usage of `@ConfigurationProperties` with a Spring `Validator`
* link:spring-boot-sample-parent-context[spring-boot-sample-parent-context]
  -- example showing an `ApplicationContext` with a parent
* link:spring-boot-sample-aop[spring-boot-sample-aop]
  -- shows explicit usage of Spring AOP
* link:spring-boot-sample-traditional[spring-boot-sample-traditional]
  -- shows more traditional WAR packaging  (but also executable using `java -jar`)
* link:spring-boot-sample-xml[spring-boot-sample-xml]
  -- Example show how Spring Boot can be mixed with traditional XML configuration (we
  generally recommend using Java `@Configuration` whenever possible)