Commit Graph

23481 Commits

Author SHA1 Message Date
Stephane Nicoll
e26e06d5dd Fix build
Two modules are still relying on the spring-boot test-jar but it was
not generated anymore. Adding the generation of test-jar again as
a workaround until we completely removes the use of it.
2014-04-30 16:39:54 +02:00
Dave Syer
689eb3e148 Add URLs from parent classloader in executable jar
$ (cd spring-boot-tools; mvn clean install -DskipTests=true)
$ (cd spring-boot-samples/spring-boot-sample-simple/; mvn clean package)
$ java -jar spring-boot-samples/spring-boot-sample-simple/target/spring-boot-sample-simple-1.1.0.BUILD-SNAPSHOT.jar

(vanilla executable jar archive: works)

$ java -cp spring-boot-samples/spring-boot-sample-simple/target/spring-boot-sample-simple-1.1.0.BUILD-SNAPSHOT.jar:spring-boot-tools/spring-boot-loader/src/test/resources/jars/app.jar org.springframework.boot.loader.JarLauncher

(jar archive plus vanilla plugin: works)

$ (cd spring-boot-samples/spring-boot-sample-simple/target; rm -rf app && mkdir $_ && cd $_ && jar -xf ../*.jar)
$ java -cp spring-boot-samples/spring-boot-sample-simple/target/app/ org.springframework.boot.loader.JarLauncher

(exploded directory: works)

$ java -cp spring-boot-tools/spring-boot-loader/s:spring-boot-tools/spring-boot-loader/src/test/resources/jars/app.jar org.springframework.boot.loader.JarLauncher

(exploded directory with plugin jar: works)

Potential fix for gh-529
2014-04-30 15:28:04 +01:00
Christian Dupuis
a66fc3030e Add more runtime metrics like information about heap, class loading and threads to the metrics infrastructure 2014-04-30 15:22:56 +02:00
Fermin Gallego
a09722272e Minor improvement in simple sample test 2014-04-30 13:11:55 +01:00
Artem Bilan
da5eae3ca5 Make loader Windows compatible
The encoding of UTF-8 (et al.) chars in the
JarUrlConnection has to be made explicit, otherwise
Wdinows apparently does not pick the default(?).

Fixes gh-711, Fixes gh-753
2014-04-30 13:08:12 +01:00
Dave Syer
030f00c36d Convert actuator-ui sample to FreeMarker
See gh-679
2014-04-30 13:04:19 +01:00
Dave Syer
50190a4de7 Add support for HikariDataSource
We still prefer Tomcat if it is available (that can change
if the community asks loudly enough). Hikari is supported
via the same spring.datasource.* properties as Tomcat (and
DBCP), with some modifications:

* The validation and timeout settings are not as fine-grained
in Hikari, so many of them will simply be ignored. The most
common options (url, username, password, driverClassName) all
work as expected.

* The Hikari team recommends using a vendor-specific DataSource
via spring.datasource.dataSourceClassName and supplying it with
Properties (spring.datasource.hikari.*).

Hikari prefers the JDBC4 isValid() API (encapsulates vendor-
specific queries) which is probably a good thing, but we
haven't provided any explicit support or testing for that yet.

Fixes gh-418
2014-04-30 11:52:47 +01:00
Dave Syer
f46d281b22 Upgrade to Reactor 1.1
Fixes gh-706
2014-04-30 11:27:29 +01:00
Stephane Nicoll
a27be338c6 Replace column name using reserved keyword
This commit replaces the "index" property of Review to use a custom
column name ("idx") as index is a reserved keyword in some RDMS such
as Oracle and MySQL.

Fixes gh-752
2014-04-30 10:51:08 +02:00
Andy Wilkinson
2596634c88 Polish spring-boot-starter-data-gemfire's pom 2014-04-29 20:24:59 +01:00
Andy Wilkinson
7c91176186 Add FreeMarker support
This commit adds auto-configuration and a starter,
spring-boot-starter-freemarker, for using FreeMarker view templates in
a web application.

A new abstraction, TemplateAvailabilityProvider, has been introduced.
This decouples ErrorMvcAutoConfiguration from the various view
technologies that Spring Boot now supports, allowing it to determine
when a custom error template is provided without knowing the details of
each view technology.

Closes #679
2014-04-29 19:46:09 +01:00
Dave Syer
1143f6dbb1 @WebApplication->@WebAppConfiguration
Fixed gh-746
2014-04-29 15:26:37 +01:00
Dave Syer
ef4e83a879 Move ErrorController to autoconfig 2014-04-29 15:23:29 +01:00
Dave Syer
27580e726f Add generic error handling to BasicErrorController
Since Spring supports gobal error handling through
@ControllerAdvice, it is quite easy to set up more meta-data
about an exception for the BasicErrorController. You need
to be careful not to swallow Security exceptions, and probably
others (optionally) so this feature needs a bit more work.

See gh-538
2014-04-29 15:23:28 +01:00
Andy Wilkinson
4474b104b6 Remove remnants of Couchbase starter 2014-04-29 11:12:10 +01:00
Andy Wilkinson
8390df2b0d Upgrade to Groovy 2.3.0-rc-2 2014-04-29 10:59:18 +01:00
Andy Wilkinson
b6cd2c970c Use Jedis rather than Lettuce as preferred Redis client
Salvatore has indicated that Jedis is his Java Redis client of choice.
This commit updates the auto-configuration support, actuator and
Redis starter accordingly.

Completes #745
2014-04-28 14:06:40 +01:00
Dave Syer
b20262c1a7 Backout couchbase changes 2014-04-28 12:21:58 +01:00
Dave Syer
59a1b39ef8 Revert JDK8 travis change (seem to be failing) 2014-04-28 11:01:45 +01:00
Dave Syer
e433eb20a6 Align couchbase more with other data-* support 2014-04-28 11:01:24 +01:00
Andy Wilkinson
02d6879b52 Polish dependencies pom
- Consistent use of tabs
 - Consistent ordering
2014-04-28 09:23:19 +01:00
Dave Syer
8136e43e88 Fix ordering in starters pom 2014-04-28 08:52:37 +01:00
Ivan Sopov
e77b5e8b94 remove obsolete EmbeddedServletContainer.NONE 2014-04-28 08:42:18 +01:00
Dave Syer
4fb6e7ec42 Fix versions and repository declarations
Fixes gh-606
2014-04-28 08:28:52 +01:00
John Blum
34cbe1e60b Created a Spring Data GemFire Starter POM
... as well as a Spring Boot Sample Application with associated tests
for demonstrating how to get started using both Spring Data GemFire
and GemFire.
2014-04-28 08:28:37 +01:00
Dave Syer
898698a681 Upgrade to Tomcat 7.0.53 (fixes gh-632) 2014-04-27 16:39:07 +01:00
TimmyStorms
a1d4d63dd1 Added spring-boot-starter-data-neo4j module.
Fixes gh-631
2014-04-26 18:07:59 +01:00
sopov.ivan
174b654faf minor test fixes
Reverting arguments in assertEquals where constant was placed on
the "actual" place. Replacing assertEquals with assertFalse, assertTrue
and assertNull where applicable.

Fixes gh-735
2014-04-26 14:14:05 +01:00
sopov.ivan
72ff1dd175 fix for gh-732 - removing test-jar from build and publishing to repositories 2014-04-26 13:44:31 +01:00
Dave Syer
42ca765e1a Remove test dependencies from spring-boot-starter-parent
Fixes gh-617

Conflicts:

	spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
2014-04-26 13:42:16 +01:00
Dave Syer
477b199cd6 Add ApplicationEventPublisher explicitly to security publisher
For some reason the exception mappings are only created with the
publisher is initialized in the constructor of DefaultAuthenticationEventPublisher.
Changed SpringBootWebSecurityConfiguration to do that rather then
relying on the ApplicationEventPublisherAware behaviour to inject it.

Fixes gh-719
2014-04-26 12:15:30 +01:00
Dave Syer
6ac85c1759 Add username/password and MongoClientOptions to Mongo config
The username/password option stil lonly works for a single host (to
connect to a cluster I suspect you need to set the URI). Also added
a MongoClientOptions (if a bean of that type exists it will be
used to populate the options that aren't in the URI).

Fixed gh-536
2014-04-26 12:09:23 +01:00
Stephane Nicoll
6cf946ea3f Fix typo 2014-04-26 11:40:44 +03:00
Andy Wilkinson
81740a759d Upgrade to Groovy 2.3.0-rc-1 2014-04-25 18:05:01 +01:00
Phillip Webb
5dabd7fb41 Rename MongoTemplateAutoConfiguration
Rename MongoTemplateAutoConfiguration to MongoDataAutoConfiguration
since it now configures more than just the template.
2014-04-25 15:57:44 +01:00
Phillip Webb
a7f5cbf7d0 Polish mongo changes
Restore formatting and fixup doc comments.
2014-04-25 15:57:44 +01:00
Phillip Webb
2adf30950e Polish couchbase support
Polish couchbase support to:
- Extract properties into its own class
- Remove unnecessary inner configuration class
- Add since tags
- Format code and add `this.` references
2014-04-25 15:57:44 +01:00
Phillip Webb
fba08e7811 Polish 2014-04-25 15:57:43 +01:00
Phillip Webb
1ae91a135c Polish MultipartConfigElement support
Polish MultipartConfigElement changes introduced in commit e8e59ea6
as follows:

- Fix javadoc formatting
- Fix tab/spaces formatting
- Fix asciidoc formatting
- Move creation of MultipartConfigElement into MultipartProperties
- Add @Since tags
- Restore random port in tests
2014-04-25 15:57:43 +01:00
Stephane Nicoll
3e3d1e837b Merge pull request #736 from isopov/modifier-order
* modifier-order:
  minor - correcting modifiers order
2014-04-25 17:37:50 +03:00
sopov.ivan
10d82e28ff minor - correcting modifiers order 2014-04-25 18:20:09 +04:00
Phillip Webb
12907e6b1b Merge branch '1.0.x'
Conflicts:
	spring-boot-starters/spring-boot-starter-parent/pom.xml
2014-04-25 14:03:14 +01:00
Dave Syer
94dd510b52 Merge GridFs with MongoTemplate configuration 2014-04-25 13:41:09 +01:00
Josh Long
f36f2024e2 Update GridFsTemplateAutoConfiguration.java
improved documentation.
2014-04-25 12:45:54 +01:00
Josh Long
330c95d6ab Update GridFsTemplateAutoConfigurationTests.java
improved documentation
2014-04-25 12:45:54 +01:00
Josh Long
0d53b9d9fa adding initial GridFS integration. 2014-04-25 12:45:53 +01:00
Ivan Sopov
4ffc95dc7f adding build on jdk8 to travis 2014-04-25 12:38:18 +01:00
Dave Syer
84b8966173 Add couchbase client dependencies 2014-04-25 12:38:11 +01:00
Dave Syer
de60c65e5b Fix couchbase starter 2014-04-25 12:22:04 +01:00
Dave Syer
bb7efa870d Remove unnecessary .gitignore 2014-04-25 12:06:37 +01:00