spring-boot/spring-boot-samples
Andy Wilkinson 2c81907d58 Flesh out and polish Embedded MongoDB auto-configuration contribution
Embedded MongoDB is now auto-configured when it is on the classpath.
The Mongo instance will listen on the port specified by the
spring.data.mongodb.port property. If this property has a value of
zero and randomly allocated port will be used. In such an event, the
MongoClient created by MongoAutoConfiguration will be automatically
configured to use the port that was allocated.

By default, MongoDB 2.6.10 will be used. This can be configured using
the spring.embedded-mongodb.version property. Mongo's sync delay
feature is enabled by default. This can be configured using the
spring.embedded-mongobd.features property.

Closes gh-2002
2015-07-16 16:34:18 +01:00
..
spring-boot-sample-activemq Polish spring-boot-sample-activemq 2015-03-23 09:50:25 -07:00
spring-boot-sample-actuator Fixup version numbers following release 2015-07-01 23:22:34 -07:00
spring-boot-sample-actuator-log4j Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-actuator-log4j2 Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-actuator-noweb Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-actuator-ui Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-amqp Polish 2015-07-07 15:17:03 -07:00
spring-boot-sample-ant Next development version 2015-07-09 17:30:48 -07:00
spring-boot-sample-aop Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-atmosphere Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-batch Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-cache Polish sample package names 2015-06-23 00:47:12 -07:00
spring-boot-sample-data-elasticsearch Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-data-gemfire Fix typos 2015-07-15 15:45:02 +02:00
spring-boot-sample-data-jpa Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-data-mongodb Flesh out and polish Embedded MongoDB auto-configuration contribution 2015-07-16 16:34:18 +01:00
spring-boot-sample-data-redis Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-data-rest Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-data-solr Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-devtools Polish sample package names 2015-06-23 00:47:12 -07:00
spring-boot-sample-flyway Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-hateoas Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-hornetq Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-hypermedia Polish Actuator hypermedia support 2015-07-05 22:28:04 -07:00
spring-boot-sample-hypermedia-gson Polish Actuator hypermedia support 2015-07-05 22:28:04 -07:00
spring-boot-sample-hypermedia-jpa Workaround problems with order of endpoint handler mapping 2015-07-15 11:45:25 +01:00
spring-boot-sample-hypermedia-ui Polish Actuator hypermedia support 2015-07-05 22:28:04 -07:00
spring-boot-sample-integration Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jersey Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jersey1 Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jetty Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jetty-ssl Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jetty8 Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jetty8-ssl Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jetty93 Polish 2015-06-29 16:48:59 -07:00
spring-boot-sample-jooq Add jOOQ sample application 2015-06-22 21:20:12 -07:00
spring-boot-sample-jpa Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jta-atomikos Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jta-bitronix Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-jta-jndi Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-liquibase Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-logback Support <springProfile> in logback configurations 2015-06-26 15:59:07 -07:00
spring-boot-sample-metrics-dropwizard Extract metric export into a separate autoconfig class 2015-05-13 13:56:03 +01:00
spring-boot-sample-metrics-opentsdb Polish sample package names 2015-06-23 00:47:12 -07:00
spring-boot-sample-metrics-redis Polish 2015-07-08 14:10:05 -07:00
spring-boot-sample-parent-context Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-profile Fixup version numbers following release 2015-07-01 23:22:34 -07:00
spring-boot-sample-secure Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-secure-oauth2 Move spring.oauth2.* to security.oauth2.* 2015-07-08 18:26:25 +02:00
spring-boot-sample-servlet Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-session-redis Polish sample package names 2015-06-23 00:47:12 -07:00
spring-boot-sample-simple Fixup version numbers following release 2015-07-01 23:22:34 -07:00
spring-boot-sample-testng Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-tomcat Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-tomcat-jsp Remove accidentally committed .gitignore files 2015-07-13 13:25:00 -07:00
spring-boot-sample-tomcat-multi-connectors Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-tomcat-ssl Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-tomcat7-jsp Remove accidentally committed .gitignore files 2015-07-13 13:25:00 -07:00
spring-boot-sample-traditional Remove accidentally committed .gitignore files 2015-07-13 13:25:00 -07:00
spring-boot-sample-undertow Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-undertow-ssl Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-velocity Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-freemarker Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-groovy-templates Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-jsp Remove accidentally committed .gitignore files 2015-07-13 13:25:00 -07:00
spring-boot-sample-web-method-security Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-mustache Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-secure Merge remote-tracking branch '1.2.x' 2015-07-13 15:43:40 +01:00
spring-boot-sample-web-secure-custom Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-secure-github Move spring.oauth2.* to security.oauth2.* 2015-07-08 18:26:25 +02:00
spring-boot-sample-web-secure-jdbc Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-web-static Fixup version numbers following release 2015-07-01 23:22:34 -07:00
spring-boot-sample-web-ui Fixup version numbers following release 2015-07-01 23:22:34 -07:00
spring-boot-sample-web-velocity Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-websocket-jetty Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-websocket-tomcat Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-websocket-undertow Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-ws Next development version 2015-07-01 22:48:01 -07:00
spring-boot-sample-xml Next development version 2015-07-01 22:48:01 -07:00
README.adoc Add cache sample 2015-06-01 11:49:14 +02:00
pom.xml Add support for Spring HATEOAS hypermedia in Actuator endpoints 2015-07-02 13:26:02 +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-log4j[spring-boot-sample-actuator-log4j]
  -- A production features sample using log4j for logging (instead of logback)
* link:spring-boot-sample-cache-ehcache[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-tomcat8-jsp[spring-boot-sample-tomcat8-jsp]
  -- A web application using JSP templates with Tomcat 8
* link:spring-boot-sample-web-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[spring-boot-sample-websocket]
  -- A web application with Websocket support on the client and 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-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-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)