Commit Graph

614 Commits

Author SHA1 Message Date
Dave Syer
55ed0bdf45 Fix problem locating spring home 2013-08-03 09:27:57 +01:00
Phillip Webb
45206d6050 Merge pull request #9 from olivergierke/master
# By Oliver Gierke
* pull9:
  Cleanups Spring Data JPA example.
2013-08-02 22:29:32 -07:00
Oliver Gierke
d2def68602 Cleanups Spring Data JPA example.
Various cleanups to the Spring Data JPA example, including:

* Move repositories into service package and make them package private
  thus only expose the service interfaces to clients.
* Merge HotelRepository and HotelSummaryRepository and make service
  implementations package protected.
* Introduce integration test base class to bootstrap the app as
  SpringAppliation.run would.
* Refactor central test case to rather use Spring MVC integration
  testing framework.
* Add integration tests for repositories to execute query methods.
2013-08-02 22:29:07 -07:00
Phillip Webb
c1344683ab Fixup sample links in README.md 2013-08-02 22:07:13 -07:00
Phillip Webb
1db22aca5c Rework POM structure
Rework main build POM to be an aggregator pom that does not inherit
from any parent. Introduce new spring-boot-dependencies module to
act as a parent for both spring-boot-starter-parent and
spring-boot-parent.
2013-08-02 21:58:24 -07:00
Dave Syer
789a5d978b Fix jar file name in alias 2013-08-02 15:01:20 +01:00
Dave Syer
27ebb52196 Add back dev profile 2013-08-02 14:57:08 +01:00
Dave Syer
ee4b533539 Fix maven repo link 2013-08-02 14:56:45 +01:00
Dave Syer
859e6c2ea8 Add spring-test to parents for samples 2013-08-02 14:44:45 +01:00
Dave Syer
a51e064f56 Alias for spring-cli now uses wget 2013-08-02 14:24:57 +01:00
Dave Syer
413658fbca Change parent for tools poms 2013-08-02 12:14:11 +01:00
Dave Syer
24e766b4e5 Add travis build 2013-08-02 12:10:40 +01:00
Dave Syer
4bb5de02e7 Switch back to SNAPSHOT for dev 2013-08-02 12:00:14 +01:00
Dave Syer
638a31f5e3 Fix poms for a milestone release 2013-08-02 12:00:14 +01:00
Dave Syer
19a880dff6 Move tools modules under spring-boot-tools 2013-08-02 12:00:14 +01:00
Dave Syer
68e5a7e887 Bump version to 0.5.0.M1 2013-08-02 12:00:14 +01:00
Phillip Webb
fda537d3b9 Polish 2013-08-02 01:00:00 -07:00
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