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