You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-samples
Phillip Webb 43d1d92611 Rework ImageBanner Support
Refactor several aspects of the ImageBanner:

- Extract a few new classes and methods from the previous code
- Directly encode ANSI rather than using `${}` properties
- Rework the scaling algorithm to prefer a fixed width
- Allow ImageBanner and TextBanner to be used together
- Rename several of the `banner.image` properties
- Add support for a left hand margin
- Add property meta-data

See gh-4647
9 years ago
..
spring-boot-sample-activemq Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-actuator Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-actuator-log4j2 Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-actuator-noweb Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-actuator-ui Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-amqp Next Development Version 9 years ago
spring-boot-sample-ant Update docs to fully reflect BOOT-INF executable archive layout changes 9 years ago
spring-boot-sample-aop Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-atmosphere Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-batch Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-cache Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-data-cassandra Try to make SampleCassandraApplicationTests' port config more robust 9 years ago
spring-boot-sample-data-couchbase Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-data-elasticsearch Polish contribution 9 years ago
spring-boot-sample-data-gemfire Fix failing test 9 years ago
spring-boot-sample-data-jpa Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-data-mongodb Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-data-neo4j Fix warnings 9 years ago
spring-boot-sample-data-redis Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-data-rest Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-data-solr Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-devtools Complete the move to constructor injection in configuration classes 9 years ago
spring-boot-sample-flyway Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-hateoas Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-hibernate4 Add Hibernate 4 sample 9 years ago
spring-boot-sample-hornetq Next Development Version 9 years ago
spring-boot-sample-hypermedia Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-hypermedia-gson Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-hypermedia-jpa Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-hypermedia-ui Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-integration Next Development Version 9 years ago
spring-boot-sample-jersey Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jersey1 Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jetty Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jetty-ssl Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jetty8 Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jetty8-ssl Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jetty93 Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jooq Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-jpa Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-jta-atomikos Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-jta-bitronix Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-jta-jndi Remove @Autowired from constructors where class has single constructor 9 years ago
spring-boot-sample-jta-narayana Polish contribution 9 years ago
spring-boot-sample-liquibase Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-logback Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-metrics-dropwizard Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-metrics-opentsdb Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-metrics-redis Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-parent-context Next Development Version 9 years ago
spring-boot-sample-profile Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-property-validation Migrate existing tests from deprecated package 9 years ago
spring-boot-sample-secure Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-secure-oauth2 Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-secure-oauth2-resource Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-servlet Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-session-redis Next Development Version 9 years ago
spring-boot-sample-simple Rework ImageBanner Support 9 years ago
spring-boot-sample-test Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-testng Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-tomcat Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-tomcat-jsp Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-tomcat-multi-connectors Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-tomcat-ssl Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-tomcat7-jsp Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-traditional Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-undertow Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-undertow-ssl Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-velocity Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-war Add comment to pom in sample explaining provided deps 9 years ago
spring-boot-sample-web-freemarker Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-groovy-templates Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-jsp Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-method-security Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-mustache Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-secure Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-secure-custom Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-secure-github Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-secure-jdbc Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-static Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-ui Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-web-velocity Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-websocket-jetty Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-websocket-tomcat Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-websocket-undertow Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-ws Rename @SpringApplicationTest -> @SpringBootTest 9 years ago
spring-boot-sample-xml Migrate existing tests from deprecated package 9 years ago
README.adoc Add Couchbase support 9 years ago
pom.xml Add Narayana JTA support 9 years ago

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)