Commit Graph

49447 Commits

Author SHA1 Message Date
Phillip Webb
e1c6860a41 Documentation 2013-08-02 00:34:53 -07:00
Phillip Webb
5a7236625b Do not use property placeholder in config names
Update ConfigFileApplicationContextInitializer so that the names
property defaults to `${spring.config.name},application`. This allows
application.properties files to be loaded even when property placeholder
expansion is not enabled.

Issue: #54462910
2013-08-01 23:33:18 -07:00
Phillip Webb
448e3283bc Polish 2013-08-01 23:33:07 -07:00
Phillip Webb
6ada4553ae Change binding exceptionIfInvalid default to true
Issue: #54462302
2013-08-01 11:10:04 -07:00
Phillip Webb
88bc6c0b56 Update Javadoc following source logic change
Update Javadoc to indicate the sources are used in addition to those
specified on construction. Also renamed member variables and fixed
log output.

Issue: #54185750
2013-08-01 10:52:38 -07:00
Dave Syer
3fda19af58 Change semantics of spring.main.sources slightly
Now the environment overrides aare **added** to the
sources provided in SpringApplication.run(). This
avoids some potential surprises where setSources()
would have been silently ignored.

[#54185750]
2013-08-01 11:38:03 +01:00
Phillip Webb
25f31b6358 Polish RegistrationBean logic 2013-08-01 00:24:52 -07:00
Phillip Webb
d835ee548d Documentation 2013-08-01 00:24:24 -07:00
Phillip Webb
57f62a5a20 Remove samples from main POM 2013-08-01 00:10:56 -07:00
Phillip Webb
bd5e49fc84 Revert "Remove integration tests project"
Turns out the maven-plugin still causes issues.

This reverts commit 1ccdf2f6cf.
2013-08-01 00:09:49 -07:00
Dave Syer
1c34fb5ed3 Fix mvn assembly 2013-07-31 21:53:32 +01:00
Phillip Webb
1ccdf2f6cf Remove integration tests project
Remove no longer required integration tests project. Samples can
now be called as part of the build since the maven plugin is no
longer an extension.
2013-07-31 13:30:48 -07:00
Phillip Webb
5450af70e0 Ops -> Actuator 2013-07-31 13:20:26 -07:00
Phillip Webb
c83400d265 Move conditions from boot to autoconfigure
Issue: #54393078
2013-07-31 12:58:47 -07:00
Phillip Webb
4c067a89fe Ops -> Actuator 2013-07-31 12:57:25 -07:00
Phillip Webb
d1ceed2f7d Polish banner 2013-07-31 12:11:09 -07:00
Dave Syer
92ff433dd0 Add samples to pom so they are part of reactor
(Might remove this later but getting ready for a release)
2013-07-31 15:13:24 +01:00
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