spring-boot/spring-boot-samples
mrumpf 251f2805a8 Add or avoid proxy configurations for integration tests
The Maven POM does all the dependency resolutions for the
spring-boot-antlib project. Delegating this task to Ivy, which is
buried deep in the Antrun/Antunit part of the build, makes any kind
of proxy configuration much more complex.
The ivysettings.xml already has the local M2 repository configured,
but because the folder "repository" is missing, the artifacts, already
downloaded by Maven cannot be resolved from this location.
The Spring and Maven Central repositories should be removed from the
ivysettings.xml files in order to force all resolves to be done through
the local M2 repository. The POM of joda-time version 2.8.1 has an
optional dependency to joda-convert 1.2, which lets the Ivy resolve
process fail, because this version of the joda-convert library was
not resolved by any of the Maven POMs. It seems as if Ivy does not
respect the optional scope, defined in the joda-time POM.

Pass proxy settings to the forked process to make the Gradle distribution download work

Create a gradle.properties file for each Gradle integration test and writes the forking
process' proxy settings as systemProp.http(s).Host/Port to the properties file.
This configures the external process with the right proxy settings to let it download
the Gradle distribution via the HTTP proxy server.

Added a hint for Windows users to get the core.autocrlf setting right

When the core.autocrlf setting under Windows is set to false for example
All files are not converted regarding their EOL characters to the
Windows format with CRLF at a line's end. There is a checkstyle
validation that checks that all files have the system's line endings
and in some test-cases the value from the system property "line.ending"
is used to check test output. So without the conversion, those checks
are going to fail, resulting in build errors.

Fixes gh-4367, fixes gh-3816
2015-11-02 17:23:30 +00:00
..
spring-boot-sample-activemq Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-actuator Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-actuator-log4j Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-actuator-log4j2 Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-actuator-noweb Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-actuator-ui Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-amqp Next Development Version 2015-10-16 05:57:24 -07:00
spring-boot-sample-ant Add or avoid proxy configurations for integration tests 2015-11-02 17:23:30 +00:00
spring-boot-sample-aop Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-atmosphere Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-batch Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-cache Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-data-cassandra Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-data-elasticsearch Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-data-gemfire Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-data-jpa Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-data-mongodb Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-data-redis Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-data-rest Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-data-solr Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-devtools Work around brittle annotation scanning in Mojarra 2015-10-28 12:18:22 +00:00
spring-boot-sample-flyway Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-hateoas Merge branch '1.2.x' 2015-10-30 09:24:14 +00:00
spring-boot-sample-hornetq Next Development Version 2015-10-16 05:57:24 -07:00
spring-boot-sample-hypermedia Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-hypermedia-gson Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-hypermedia-jpa Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-hypermedia-ui Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-integration Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-jersey Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jersey1 Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jetty Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jetty-ssl Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jetty8 Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jetty8-ssl Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jetty93 Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-jooq Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-jpa Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-jta-atomikos Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-jta-bitronix Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-jta-jndi Next Development Version 2015-10-16 05:57:24 -07:00
spring-boot-sample-liquibase Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-logback Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-metrics-dropwizard Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-metrics-opentsdb OpenTsdbMetricWriter -> OpenTsdbGaugeWriter 2015-10-31 16:10:49 +00:00
spring-boot-sample-metrics-redis Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-parent-context Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-profile Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-property-validation Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-secure Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-secure-oauth2 Add OAuth2 resource server sample 2015-10-29 08:41:51 +00:00
spring-boot-sample-secure-oauth2-resource Add OAuth2 resource server sample 2015-10-29 08:41:51 +00:00
spring-boot-sample-secure-sso Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-servlet Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-session-redis Organize imports with new settings 2015-10-19 12:58:34 -07:00
spring-boot-sample-simple Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-testng Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-tomcat Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-tomcat-jsp Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-tomcat-multi-connectors Merge branch '1.2.x' 2015-10-30 09:06:58 +00:00
spring-boot-sample-tomcat-ssl Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-tomcat7-jsp Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-traditional Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-undertow Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-undertow-ssl Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-velocity Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
spring-boot-sample-war Next Development Version 2015-10-16 05:57:24 -07:00
spring-boot-sample-web-freemarker Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-groovy-templates Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-jsp Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-method-security Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-mustache Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-secure Narrow range of events listened for in security audit 2015-11-02 10:01:45 +00:00
spring-boot-sample-web-secure-custom Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-secure-github Ensure request context is setup before security filter runs 2015-10-27 10:56:55 +00:00
spring-boot-sample-web-secure-jdbc Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-static Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-ui Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-web-velocity Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-websocket-jetty Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-websocket-tomcat Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-websocket-undertow Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-ws Update the samples to use @WebIntegrationTest and randomPort=true 2015-10-27 11:56:01 +00:00
spring-boot-sample-xml Merge remote-tracking branch 'local12x/1.2.x' 2015-10-19 12:56:55 -07:00
README.adoc Fix sample links 2015-08-28 16:38:15 +02:00
pom.xml Next Development Version 2015-10-16 05:57:24 -07: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[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-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)