Commit Graph

1521 Commits

Author SHA1 Message Date
Dave Syer
aebf3c2bef Tweak external config file loading to support additional profiles
Profiles set with Environment.setActiveProfiles() (rather than
spring.profiles.active) *before* any config files are processed, are
treated as "additional" (to the ones supplied in spring.profiles.active
from all sources, files and System properties included).

Fixes gh-429
2014-03-05 15:56:24 +00:00
Dave Syer
de9b6a6a22 Switch off debug in secure sample
Fixes gh-438
2014-03-05 14:46:31 +00:00
Dave Syer
c53a36717d Consider subtypes in exception error page mapping
Fixes gh-417
2014-03-05 09:45:13 +00:00
Dave Syer
a0ba8c90a6 Add MultipartConfig to DispatcherServlet by default
RC4 added a ServletRegistrationBaen for teh DispatcherServlet and we
didn't register a MultipartConfigElement if one was present.

Fixes gh-427
2014-03-05 09:30:18 +00:00
Dave Syer
ffe91ca6bf Change exception message for missing Thymeleaf templates
Fixes gh-424
2014-03-05 09:07:15 +00:00
Dave Syer
6b83e0ad5d Change bean name of ContentNegotiatingViewResolver
Fixed gh-428
2014-03-05 08:56:53 +00:00
Dave Syer
15372cb737 Add Maven example for Tomcat 8
Fixes gh-430
2014-03-04 22:28:05 +00:00
Dave Syer
f9094143d7 Remove undefined FILE appender from basic log4j config
Fixes gh-433
2014-03-04 22:23:44 +00:00
Dave Syer
b56bd0a10c Add ViewResolver docs 2014-03-04 22:17:50 +00:00
Dave Syer
3bc37ddde0 Strip out most of websocket autoconfig
... leaving only the embedded Tomcat enabling feature (registering
the WsSci).

Fixes part of gh-65
2014-03-04 16:25:10 +00:00
Andy Wilkinson
326c12d1f5 Update Spring repository url in Gradle samples 2014-03-04 13:15:41 +00:00
Phillip Webb
7e60b1996b Fixup starter-parent POM 2014-03-04 00:06:27 -08:00
Phillip Webb
6934b340ce Update README to RC4 2014-03-03 23:50:56 -08:00
Phillip Webb
1995b62530 Fixup starter-parent POM 2014-03-03 23:43:58 -08:00
Spring Buildmaster
b0d4e8ae69 Next development version 2014-03-03 22:46:12 -08:00
Spring Buildmaster
cb8668a151 Release version 1.0.0.RC4 2014-03-03 22:46:05 -08:00
Phillip Webb
02faa0af0d Merge pull request #415 from adambro/patch-2
* patch-2:
  Correct link to samples.
2014-03-03 21:34:54 -08:00
Adam Brodziak
45cd52586b Correct link to samples.
Fixes gh-415
2014-03-03 21:34:42 -08:00
Phillip Webb
6c8e81f870 Rework ErrorWrapperEmbeddedServletContainerFactory
Rename ErrorWrapperEmbeddedServletContainerFactory to ErrorPageFilter
and extend AbstractConfigurableEmbeddedServletContainer rather
than AbstractEmbeddedServletContainerFactory.

Fixes gh-416
2014-03-03 21:24:13 -08:00
Phillip Webb
99350a2216 Tidy ConfigurableEmbeddedServletContainerFactory
Rename ConfigurableEmbeddedServletContainerFactory to
ConfigurableEmbeddedServletContainer and extract
AbstractConfigurableEmbeddedServletContainer from
AbstractEmbeddedServletContainerFactory.
2014-03-03 21:10:56 -08:00
Phillip Webb
3f9ca68812 Tweak ConfigurableEmbeddedServletContainerFactory
Update ConfigurableEmbeddedServletContainerFactory to no longer directly
extend EmbeddedServletContainerFactory.
2014-03-03 18:39:18 -08:00
Phillip Webb
9c4dc0c68f Drop getPort from ConfEmbServletContainerFactory
Remove getPort() from ConfigurableEmbeddedServletContainerFactory to
keep the interface primarily setters.
2014-03-03 18:10:08 -08:00
Phillip Webb
468728a2c0 Polish 2014-03-03 17:50:19 -08:00
Dave Syer
07b88630f4 Be defensive with auto-config of Servlet 3.0 features
There's no explicit support for older Servlet specs in Spring Boot,
but we can at least make it easy for others to provide such
support by not adding stuff to the context when in an older container.
2014-03-03 18:08:38 +00:00
Dave Syer
8ff9e67714 Add actuator to method security sample 2014-03-03 15:03:08 +00:00
Dave Syer
9504f6e5a9 Add method security web sample
Useful sample for common use case where user adds custom Authentication,
a form login, *and* global method security all the the same application.
2014-03-03 14:24:08 +00:00
Dave Syer
b0b7bc0e7f Fix tests
Some assumptions were being made in tests, e.g. about
there being an AuthenticationManager @Bean, which were
false with the new Security 3.2.1 updates from Rob.

Also parent-child contexts with the actuator were
problematic because they didn't exclude the web configuration
for the management security in the parent context.

Fixes gh-244
2014-03-03 12:22:36 +00:00
Rob Winch
6b0eba3759 Update to Spring Security 3.2.1
Also change strategy for defaulting of Authentication. Spring
Boot authentication defaults are now encapsulated and can easily
be overridden by a user defined AuthenticationManager.
2014-03-03 12:21:37 +00:00
Dave Syer
13e040c06e Add ErrorWrapperEmbeddedServletContainerFactory for error pages in WARs
Error pages are a feature of the servlet spec but there is no Java API for
registering them in the spec. This filter works around that by accepting error page
registrations from Spring Boot's EmbeddedServletContainerCustomizer (any beans
of that type in the context will be applied to this container).

In addition the ErrorController interface was enhanced to provide callers
the option to suppress logging.

Fixes gh-410
2014-03-03 09:52:40 +00:00
Dave Syer
3f125fb840 Fix typos in JSP docs 2014-02-28 22:30:58 +00:00
Dave Syer
e58206bcf6 Add sample web.xml for error mapping 2014-02-28 09:02:31 +00:00
Dave Syer
7b2488dedf Add UTF-8 declarations to starter parent
Fixes gh-411
2014-02-28 08:27:21 +00:00
Dave Syer
38809480fb Add docs for starter pom usage 2014-02-27 14:48:00 +00:00
Dave Syer
6b5828a820 Be defensive if there is no main/classes 2014-02-27 10:55:23 +00:00
Dave Syer
2845b101a1 Add spring-data-rest sample 2014-02-27 10:33:44 +00:00
Marten Deinum
8e8237a93e Spring Data Rest Starter Project
Fixes gh-60
2014-02-27 09:44:12 +00:00
Dave Syer
82f49abeba Expose setter for Map store in InMemoryMetricRepository
User can then use a weak reference map (for instance), if worried
about memory usage.
2014-02-26 17:07:31 +00:00
Dave Syer
29982f5946 Add @Configuration to WebMvcAutoConfigurationAdapter 2014-02-26 17:02:38 +00:00
Sebastien Deleuze
e9ead99e9c Make Spring Boot tests locale independent
Fixes gh-405
2014-02-26 16:43:28 +00:00
Dave Syer
42f363dc12 Explicitly manager javassist version
Hibernate is picky about javassist, but unfortunately that
library is used by other parts of our stack (Thymeleaf!?), so
we need a policy for resolving the dependency transitively.
I fixed it to the version in Hibernate 4.3.1 (our current
best foot forward), but it will have to be updateed whenever
Hibernate is.

Fixes gh-402
2014-02-26 14:01:51 +00:00
Dave Syer
70431c5d64 Add howto for Jetty 2014-02-26 09:30:03 +00:00
Dave Syer
89ebe51d76 Tidy up websocket starter
Fixes gh-396
2014-02-26 09:24:49 +00:00
Dave Syer
26ebc98b70 Update SpringApplicationContextLoader for Spring 4.0.3
Spring 4.0.3 is not released yet, but we can anticipate the
change. With this commit SpringApplicationContextLoader can discover
default config (nested) classes if none are provided. It should
just work when Spring is upgraded.

Fixes gh-395
2014-02-25 15:59:38 +00:00
Dave Syer
cfba5e8361 Disable default configuration detection in @SpringApplicationConfiguration
This is a holding pattern until SPR-11455 is fixed. We now throw an
exception with a helpful message instead of ttrying to detect default
configuration.

Fixes gh-380
2014-02-25 12:51:36 +00:00
Dave Syer
f0f73a4ead Current directory (lodaer.path=.) pathology workaround
It turns out that loader.path=. was pathological and before this
change ended up making the classpath empty (loader.path=.,lib/
would have fixed it). With this change the old behaviour is still
supported, but if the only user-supplied path entry is "." (or
empty) then it is now kept, and translates into the root of the
current archive if running as "java -jar ...".

Fixes gh-270
2014-02-25 12:38:25 +00:00
Phillip Webb
083cb388c0 Upgrade to Spring Security 3.2.1
Fixes gh-392
2014-02-24 21:54:33 -08:00
Phillip Webb
2669d81433 Upgrade 3rd-Party Dependencies
Fixes gh-393
2014-02-24 21:26:39 -08:00
Phillip Webb
0322c5f55d Support EL without jasper by using tomcat-embed-el
Add `tomcat-embed-el` dependency (newly released as part of Tomcat
7.0.52) allowing EL usage without jasper.

Fixes gh-248
2014-02-24 15:00:42 -08:00
Phillip Webb
c44f902a7c Upgrade to Tomcat 7.0.52
Fixes gh-245
2014-02-24 14:56:18 -08:00
Phillip Webb
0260297aa4 Polish 2014-02-24 14:31:54 -08:00