Commit Graph

1807 Commits (d87f452a966ecf0759f8455394934eedd5eaa77e)
 

Author SHA1 Message Date
Phillip Webb 1664cef469 Upgrade some third party dependencies
Upgrade Jackson and Reactor

Fixes gh-597
11 years ago
Phillip Webb aca67066bf Rename RestTemplates to TestRestTemplate
Rename the RestTemplates to TestRestTemplate to help indicate that it's
primarily intended for testing. Also now extend RestTemplate to allow
direct use, rather than via factory methods.

Fixes gh-599
11 years ago
Phillip Webb d117a6b22b Polish 11 years ago
Dave Syer 71c2c69c92 Return actual status code not 200 to machine client
Machine clients are much more fussy than browsers and we
should take care to preserve the HTTP status for them.

Fixes gh-596
11 years ago
Dave Syer d13827c45c Switch default query to 'select 1'
Fixes gh-555
11 years ago
Andy Wilkinson 46fc5c05e3 Work around Groovy compiler bug that can name classes incorrectly
If a source URL is added to a CompilationUnit and that source URL does
not contain any slashes, the resulting ClassNode in the AST will be
incorrectly named. For example, a URL of 'file:foo.groovy' will produce
a ClassNode named 'file:foo'. The expected name is 'foo'.

This commit works around this problem by adding any URL sources with a
file protocol to the compilation unit as File instances. Any URL sources
that do not have a file protocol continue to be added as URL instances.
Such URLs are still prone to this bug should we be dealing with one
that contains no slashes. A fix for the underlying Groovy bug will
address this possibility.

Fixes #594
11 years ago
Dave Syer 8491f8eb07 Simplify build config for actuator sample 11 years ago
Dave Syer 8c3cb51110 Add extra test for nested list binding 11 years ago
Phillip Webb 620e98ce24 No longer @Ignore test following 4.0.3 upgrade
Full run SpringApplicationConfigurationDefaultConfigurationTests

Fixes gh-562
11 years ago
Phillip Webb 3b592fc25c Upgrade to Spring 4.0.3
Fixes gh-564
11 years ago
Phillip Webb b75894aec2 Change logging level on PropertySourcesLoader
Reduce logging level to trace to remove the ugly output that appears
above the banner.

Fixes gh-591
11 years ago
Phillip Webb e7153dd604 Tweak build status location 11 years ago
Phillip Webb 9815b776d6 Use Bamboo build status image
Replace travis build status image with Bamboo since it seems to
fail less.
11 years ago
Phillip Webb beaddb2362 Polish 11 years ago
Phillip Webb aa3f0556dc Fixup asciidoc formatting and links 11 years ago
Dave Syer bae26e2c07 Make sure logback console output happens early in lifecycle
The problem was that the basic-logback.xml was valid configuration
but not in a <configuration> tag, so it wasn't valid on its own.
This change fixes that.

Fixes gh-585
11 years ago
Dave Syer d7948112b4 Extract sub-properties methods to PropertySourceUtils
The static convenience methods in RelaxedPropertyResolver were not
really relaxed, so since they are public (and useful) it makes
more sense to extract them to a utility class.
11 years ago
Dave Syer 006d7b6931 Move MongoTemplateAutoConfiguration to mongo package 11 years ago
Dave Syer 01775ba53d Clarify role of MVC autoconfiguration
Users only have to add a normal `WebMvcConfigurer` to configure
their own features. Sometimes that's not clear enough (and it's
good to stress that `@EnableWebMvc` is the thing that switches
off the Boot configurtation.

Fixes gh-583
11 years ago
Phillip Webb 142a3107f4 Upgrade to Spring 4.0.3.BUILD-SNAPSHOT
Upgrade to the snapshot version of spring for sanity testing.
11 years ago
Phillip Webb 54a5718b98 Minor polish 11 years ago
Phillip Webb f70d6fb411 Declare all repositories in build samples
Update Gradle and Ant samples to consistently declare all repositories
(local, central, release, snapshot, milestone).

Fixes gh-426
11 years ago
Phillip Webb 39f10fdfb5 Note different document formats in reference guide
Fixes gh-570
11 years ago
Phillip Webb 52dc7b8727 Upgrade to Spring Security 3.2.3
Fixed gh-567
11 years ago
Phillip Webb 0960ac760e Check that cli `jar` command only writes `.jar`s
Update `JarCommand` to check that the file extension of the output is
`.jar`.

Fixes gh-581
11 years ago
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