Commit Graph

1682 Commits (1dcd4ddf9e70eda53e682e65e490697b29695544)
 

Author SHA1 Message Date
Phillip Webb 1dcd4ddf9e Restore Spring Framework version
Remove accidentally committed SNAPSHOT dependency.
11 years ago
Phillip Webb 44d708ef7a Polish 11 years ago
Phillip Webb c11d94105a Log AutoConfigurationPackages warnings just once
Update AutoConfigurationPackages to log warnings on the first access,
rather than during setup. This works around the fact that the CLI
currently add multiple @EnableAutoConfiguration annotations.

Fixes gh-579
11 years ago
Andy Wilkinson b8858bdb8f Enable support for use of encryption in Maven's settings.xml
This commit updates the CLI so that it will decrypt any encrypted
passwords in a user's Maven settings.xml file.

The code that performs the decrytion has a transitive dependency on
three types in Plexus' logging API. There are tens of different
artifacts containing this API available in Maven Central. Rather than
bloating the API with a dependency on a complete Plexus container,
which could perhaps be considered the primary source, a dependency on
a considerably smaller artifact has been introduced.

Closes #574
11 years ago
Dave Syer c5820d872a Ensure new VCAP_SERVICES format works 11 years ago
Tomas Lin dae38224b7 Bad Tomcat 8 section reference to websockets pom
Removed this link "The websocket sample shows you how to do that in Maven." since the example no longer has properties that show how this is done. Dave Syer edited the section in a previous issue by adding the example to the POM ( https://github.com/spring-projects/spring-boot/issues/430 ) but it appears that the bad link was not removed.
11 years ago
Dave Syer e059d0cd5f Re-order security auto configuration so the fallback can be applied
The management security autoconfiguration wanted to come last in the chain
but that won't suit the fallback that was already in place for gh-568. This
change re-orders the autoconfig so that @EnableWebSecurity is still added
if the user sets security.basic.enabled=false and includes the actuator
endpoints.

Fixes gh-568
11 years ago
Sebastien Deleuze 60ad7cd787 Fix quotes in a Gradle example 11 years ago
Dave Syer 59124d07c4 Switch on @EnableTransactionManagement by default
Fixes gh-576
11 years ago
Dave Syer 809a5a711f Add a @EnableWebSecurity if it looks like the user needs one
If the user explicitly disables the basic security features and forgets to
@EnableWebSecurity, and yet still wants a bean of type
WebSecurityConfigurerAdapter, he is trying to use a custom
security setup and the app would fail in a confusing way without
this change.

Fixes gh-568
11 years ago
Dave Syer 60fe468af9 Make JAR files on classpath a special case for archive
If the user adds a JAR file to the classpath in "spring jar -cp ..."
he expected it to end up in the classpath of the executable jar
(i.e. in the nested lib/ directory). Before this change it would
have gone in the root of the executable JAR, causing errors at runtime.

The fix is slightly awkward, since it assumes that any JAR in the
"roots" of the ResourceMatcher come from the classpath (which *is*
the case currently, but might not always be at least in principle).
Seems like a reasonable compromise given it's a quick change
and some tests have been included.

Fixes gh-565
11 years ago
Dave Syer a821092bbd Log a warning if repository autscan is set to default package
Fixes gh-572
11 years ago
Dave Syer a3a58e1e13 Move @EnableRabbitMessaging into the non-protected package
Fixes gh-573
11 years ago
Dave Syer b21fdd3463 Switch default security filter back on
If the user sets security.basic.enabled=false he has to remember
to @EnableWebSecurity.  Possibly we could be more helpful about the
exception, but I think this might be pilot error.

Fixes gh-568
11 years ago
Phillip Webb 489e97361c Merge pull request #542 from snicoll/gh-540
* gh-540:
  Support Tomcat uri encoding (with UTF-8 default)
11 years ago
Stephane Nicoll 87321edf36 Support Tomcat uri encoding (with UTF-8 default)
Introduce an extra `server.tomcat.uri-encoding` property used to
configure the URI encoding for the embedded tomcat container.

Defaults to `UTF-8` instead of the usual tomcat default of `ISO-8859-1`.

Fixes gh-540
11 years ago
Phillip Webb 75548c1205 Remove spring-data-commons
Remove direct reference to spring-data-commons, instead favoring
transitive dependency.

Fixes gh-557
11 years ago
Phillip Webb 403d57c695 Merge pull request #569 from martinlau/Issue-556
* Issue-556:
  Escape URL characters in JAR URLs
11 years ago
Martin Lau 53cb8ccde2 Escape URL characters in JAR URLs
Update the spring-boot-loader JarURLConnection class to decode entry
names in the same way as the stock JDK class. This allows encoded
entry names in the form `%c3%ab` to be loaded.

Fixes gh-556
11 years ago
Rob Winch f852096c87 Security Documentation Cleanup
- Add link to Spring Security's Global Method Security Java Configuration
- Fix link to SecurityProperties
- Add link to SECURITY Common application properties
- Remove unnecessary @Order from SecurityConfiguration
- Change method signature for @Autowired AuthenticationManagerBuilder to
  compile / match Spring docs
11 years ago
Phillip Webb d42bedf295 Rename @ConfigurationProperties attributes
Rename `name` to `prefix` and `path` to `locations`.
11 years ago
Phillip Webb 07ad45c468 Link to community contributed starters README
Update reference docs to link to the community starters README.
11 years ago
Phillip Webb 39cbb1d0ae Polish ParentContextCloserApplicationListener
Fix formatting for the recent ParentContextCloserApplicationListener
change, also some minor internal renames.
11 years ago
Eric Bottard 9d2983e994 Prevent retention of child from parent
When the child is listening for parent closed events
the parent has a reference to the listener which contains the chils.
Thust there is a cycle of references and a GC probalem waiting to
happen.

This change breaks the cycle by making the reference to the
child a WeakReference.

Fixes gh-559
11 years ago
Dave Syer 770c115d88 Allow Batch configuration without DataSource
If the user provides a JobExplorer and a BatchConfigurer that
don't require a DataSource we can back off on configuring ours
(and anything else that needs a DataSource).

Fixes gh-561
11 years ago
Dave Syer 86ab2eb061 Pass custom ResourceLoader down to read config files
If user sets a ResourceLoader on the SpringApplication, he might
reasonably expect that it would be used to read the config files.
This change ensures that it is (instead of just using the
DefaultResourceLoader).
11 years ago
Dave Syer 78d13c513c Correct property path for management.address
Fixes gh-558
11 years ago
Dave Syer ad2892c6b3 Add README to starters
Basic README content plus a short table of community-
contributed additional starters.

See gh-539
11 years ago
Dave Syer 86054a9c53 Use reflection to setup Websocket SCI so it works in Tomcat 8
Annoyingly this is necessary if we want to support Tomcat 7 and 8
since the package name changed.

Fixes gh-554
11 years ago
Dave Syer 45315a97ff Prevent accidental failure of deployed war when management.port is set
We can't support (yet) embedded containers inside a deployed war (class
loader conflicts are inevitable, really). Until we figure out a way to
do it, we should just log a warning and advise the user to switch to
JMX for the actuator endpoints.

See gh-552
11 years ago
Dave Syer 3496f3f9dc Add marker interface for non-embedded servlet container
ErrorPageFilter is itself an EmbeddedServletContainerFactory
but it runs in a non-embedded container. Any component that assumes
the presence of an EmbeddedServletContainerFactory implies we are
running embedded is therefore invalid. WebSocketAutoConfiguration
had that problem.

Fixes gh-551
11 years ago
Dave Syer b824a6ea05 Tweak to support finer grained locking
Fixes gh-543
11 years ago
Nicholas Hagen 8d442b1fbc Fix issue with paralellism and CodaHale metrics
Since there is no atomic remove/register operation for
Gauges, we need to synchronize.
11 years ago
hoserdude 5ef7bda47a minor doc changes based on RC5 migration experience 11 years ago
Dave Syer 373e2c5156 Allow user to opt out of ContentNegotiatingViewResolver
The bean ID for the ContentNegotiatingViewResolver is now
"viewResolver" (it is the *one*). The conditions have been changed
so that a user only has to define a bean of the same name to switch
it off.

Fixes gh-546
11 years ago
Dave Syer 4637c2a8f7 Accept viewNames and excludedViewNames for ThymeleafViewResolver
(via spring.thymeleaf.*).

Fixes gh-548
11 years ago
Dave Syer e472e7ccca Use forward:/index.html for home page
Fixes gh-549
11 years ago
Dave Syer 632290a4bf Fix inconsistencies between pom.xml and META-INF/spring.provides 11 years ago
Spring Buildmaster 3129f10d3f Next development version 11 years ago
Phillip Webb 9d0ac86887 Polish 11 years ago
Phillip Webb 03667c7ddc Rename a few `setup` methods to `configure`
Fixes gh-537
11 years ago
Phillip Webb 701bb6ee0a Merge pull request #535 from stringy05/multiple-tomcat-connectors
* multiple-tomcat-connectors:
  Allow multiple connectors with Tomcat
11 years ago
brockwmills 8b77a0298f Allow multiple connectors with Tomcat
Update TomcatEmbeddedServletContainerFactory to allow for additional
containers (e.g. SSL or AJP in addition to HTTP).

Fixes gh-528
11 years ago
Dave Syer 48636e3d6e Add additional grouping of property sources by profile
Before this change the PropertySources loaded from external config
files were just added to the list for resolution in the order that
they were loaded. That worked for simple cases, but when there are
profiles active, and files themselves can activate profiles, it led
to users not being able to change default settings easily (either
on command line or in files, mostly in files).

The solution proposed here is to group PropertySources by profile
and resolve them in order of profile first, and then in order of
the files being loaded.

There are additional shenanigans because the order of the files
being loaded also has to be carefully defined. The rule for users
is that in a list of files to load (e.g. if set via
spring.config.location), the last one wins (natural if you think of
it as a merge of multiple maps). In addition, anything specified
by a user takes precedence over the defaults (which was broken in
some scenarios before).

Additionally, fixes profile ordering in @ConfigurationProperties(path=...)

Fixes gh-483
11 years ago
Phillip Webb 84cc110344 Remove logging from spring-boot-starter-test
Fixes gh-541
11 years ago
Phillip Webb 47eb8180b3 Rename spring-boot-starter-shell -> remote-shell
Fixes gh-462
11 years ago
Phillip Webb 8c0703ad9c Spaces -> Tabs 11 years ago
Christian Dupuis 3cd70b1c19 Fix last polish so that login.groovy is valid groovy code again 11 years ago
Phillip Webb 5ab88b2344 Automatically add schedule annotation imports 11 years ago
Phillip Webb 3193913899 Polish 11 years ago