Commit Graph

56230 Commits

Author SHA1 Message Date
Dave Syer 00e893780a Allow spring.main.sources to override only if uninitialized
The problem this change fixes is that spring.main.sources would always
be bound to SpringApplication.sources when provided in a properties file
even if SpringApplication.run() is called directly with sources. This
led to confusion with users saying that their sources were not working
where in fact they weren't even being used.

There would be more than one way to approach this problem, but we
have chosen for now to ignore spring.main.sources completely
if the SpringApplication constructor was already called with
explicit non-empty sources. It might be preferable, if possible,
to only ignore its value in an external properties file (allowing
command line or System properties to override). If we want to change
the behaviour again, I suggest a new story should be created.

[Fixes #54185750] [bs-255]
2013-07-31 12:16:28 +01:00
Dave Syer 39425c81d6 Servlet context document root not found when running as exploded WAR
* Added additional search in
AbstractEmbeddedServletContainerFactory.getValidDocumentRoot() to
detect a /WEB-INF/ directory in the code archive
* If the code archive is in /WEB-INF/** then we assume it is
safe to serve content from / (exposes the loader classes
but nothing sensitive from the app)

[Fixes #54345578]
2013-07-31 10:30:03 +01:00
Phillip Webb b65625bec3 Ensure registerShutdownHook is called for apps 2013-07-31 01:55:29 -07:00
Dave Syer 5995b7727a Ops -> Actuator 2013-07-31 09:46:34 +01:00
Dave Syer ec3c5b5321 Add auto compile tweaks for reactor 2013-07-31 09:21:16 +01:00
Phillip Webb 9cf59050d3 Documentation 2013-07-31 01:14:07 -07:00
Phillip Webb ec36efd50f Rename Spring Bootstrap -> Spring Boot 2013-07-31 01:11:10 -07:00
Phillip Webb 3bb79db579 Renamed spring-boot-ups -> spring-boot-starter 2013-07-31 01:11:10 -07:00
Dave Syer 2f0a96c986 Remove unused @ComponentScan 2013-07-30 22:02:08 +01:00
Dave Syer 6d76467a66 Add responsive features to static sample 2013-07-30 10:31:37 +01:00
Phillip Webb 0fee00f0d7 Add gradle example builds
Add gradle example builds to spring-boot-sample-tomcat and
spring-boot-sample-traditional.

Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb 2752177fba Add spring-boot-gradle-plugin
Develop gradle plugin that can repackage JAR/WAR archives so that
they can be launched using 'java -jar'

Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb 0db6799def Polish spring-boot-loader-tools
Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb 826f42746a Fix package name for boot-loader-tools
Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb d1c31445ec Fixup various spring-boot-loader-tools issues
Fix compression of existing jars to detect nested zip entries and
use the STORED method.

Also fixed various test errors.

Issue: #53129653
2013-07-30 00:06:35 -07:00
Phillip Webb 14062964e0 Remove v[N/A] log output 2013-07-30 00:06:35 -07:00
Phillip Webb 82f16a0430 Ignore eclipse generated markdown files 2013-07-30 00:06:34 -07:00
Phillip Webb 6fd6d3a73e Rename maven 'package' goal to 'repackage' 2013-07-29 14:52:30 -07:00
Phillip Webb 36c3ceab97 Include servlet support for index.html resources
Issue: #54228642
2013-07-29 13:03:42 -07:00
Phillip Webb 772cc851a0 Polish WebMvcAutoConfiguration resource locations 2013-07-29 12:48:48 -07:00
Phillip Webb 728829ba81 Revert welcome file defaults
Revert welcome file default that break existing tests.

Issue: #54228642
2013-07-29 12:42:37 -07:00
Phillip Webb c951989421 Ignore failure to close zip errors
Issue: Issue: #53129653
2013-07-29 11:41:07 -07:00
Dave Syer fe90df3afc Remove WARN log in Tomcat startup 2013-07-29 17:09:31 +01:00
Dave Syer 4c359e1a4d Two choices are available to users for welcome page
* For a jar deployment add classpath:static/index.html
(works via Spring MVC mapping)
* For a war the same thing works, but so does adding
index.html to src/main/webapp (works via container
default servlet)

[Fixes #54092261] [bs-252]
2013-07-29 11:57:44 +01:00
Dave Syer af798a2741 Use an include for logback 2013-07-29 10:20:47 +01:00
Phillip Webb 5e4238f38a Create spring-loader-tools project
Create spring-loader-tools containing utilities that can be used
with both Maven and Gradle plugings.

Refactored existing Maven plugin to use the new project.

Issue: #53129653
2013-07-28 23:49:20 -07:00
Dave Syer 7ea433dce2 Fix broken logback.xml 2013-07-27 12:08:17 +01:00
Phillip Webb 65a9953c86 Fix a new remaining 'zero' and 'bootstrap' terms
Issue: #54095231
2013-07-26 14:14:51 -07:00
Phillip Webb b665a2bb1d Renamed packages
Issue: #54095231
2013-07-26 14:11:04 -07:00
Phillip Webb 3f2bb03fb8 Renamed some projects and polish POMs
Issue: #54095231
2013-07-26 12:31:37 -07:00
Dave Syer 06ddd92438 Fix spelling error in maven plugin name 2013-07-26 17:54:59 +01:00
Dave Syer 2098e23fca Change package names zero->boot
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up

[#54095231] [bs-253] Refactor Zero->Boot
2013-07-26 14:13:41 +01:00
Dave Syer b2873fbc2d Add WebMvcAutoConfigurationTests
[Fixes #53027833]
2013-07-26 11:11:17 +01:00
Dave Syer 9e14409334 Improve test coverage in RelaxedDataBinder 2013-07-26 10:32:10 +01:00
Dave Syer b1f4320c17 Added new logic to RelaxedDataBinder to deal with nested stuff
* Leverages existing behaviour of BeanWrapperImpl where possible
to autogrow collections and lists
* Logic for scanning and converting bean paths encapsulated in
BeanPath inner class

[Fixes #53947797] [bs-249]
@ConfigurationProperties cannot bind to Map<String,List<Thing>>
2013-07-26 10:10:31 +01:00
Dave Syer 2d1f758fd8 Autoconfigure MVC if HandlerMapping already defined 2013-07-25 10:09:11 +01:00
Phillip Webb e695b4a6ea Use Registrar to register BeanPostProcessors
Use a ImportBeanDefinitionRegistrar to register BeanPostProcessors
rather than using @Bean definitions. Prevents warnings about
beans not having all BeanPostProcessors applied.
2013-07-25 00:18:20 -07:00
Phillip Webb 132722100a Turn down logging 2013-07-25 00:18:20 -07:00
Phillip Webb da07cdf41f Fix TomcatEmbeddedWebappClassLoader for Tomcat 8
Rework TomcatEmbeddedWebappClassLoader to deal with the fact that
the 'system' field is final in Tomcat 8.

Issue: #53945989
2013-07-25 00:18:20 -07:00
Dave Syer 1df48e23a2 Change @Conditional for reactor auto config 2013-07-24 21:58:17 +01:00
Dave Syer 683ddbf525 Add Reactor autoconfiguration
* Make Rector @Autowirable
* Create a ConsumerBeanPostProcessor so users can add
@On and @Reply to bean methods
* Added groovy auto compiler and script sample

[#53955419] [bs-250]
2013-07-24 18:02:50 +01:00
Dave Syer a365b8c1b6 Added ignored test cases for binding to maps
[#53947797] [bs-249] @ConfigurationProperties cannot bind to
Map<String,List<Thing>> or Map<String,Thing>
2013-07-24 13:21:20 +01:00
Dave Syer ca74168936 Exclude JSP classes by default 2013-07-24 11:44:40 +01:00
Dave Syer abf36c30f9 Add back no-op setLoader to ServerProperties
Tomcat starts up with server.loader System property set so
we need to accept that.

[Fixes #50806851] [bs-141]
First class escape hatch from jar to war for web applications
2013-07-23 18:10:09 +01:00
Dave Syer 0793e18857 Tests fixed, removing comments 2013-07-23 17:41:00 +01:00
Dave Syer 08137cf4d6 Pin problematic dependency in local repo cache 2013-07-23 17:32:53 +01:00
Dave Syer 672aa71ef5 Add Assume for CI build 2013-07-23 17:22:20 +01:00
Dave Syer d639763bd7 Another attempt at making the ui sample work 2013-07-23 15:47:26 +01:00
Dave Syer db27620c6e Fix interfaces in groovy configuration 2013-07-23 12:24:36 +01:00
Dave Syer 4ecfbf68bf Allow multi-valued spring.config.name
Now accepts CSV list and later values override in the
implied map that is generated.

[Fixes #53785419] [bs-245]
2013-07-23 11:10:54 +01:00