Phillip Webb
0829a1bde8
Drop superfluous annotations
...
Update internal tests to drop annotations that can now
be inferred.
Fixes gh-5470
9 years ago
Phillip Webb
c28f552883
Migrate SpringJUnit4ClassRunner to SpringRunner
...
Replace all existing SpringJUnit4ClassRunner references with the new
SpringRunner alias.
Fixes gh-5292
9 years ago
Phillip Webb
2f815a907a
Migrate existing tests from deprecated package
...
Update the existing tests to use the relocated `spring-boot-test`
classes. Restructuring was achieved using the following command:
find . -type f -name '*.java' -exec sed -i '' \
-e s/org.springframework.boot.test.ConfigFileApplicationContextInitializer/\
org.springframework.boot.test.context.ConfigFileApplicationContextInitializer/g \
-e s/org.springframework.boot.test.EnvironmentTestUtils/\
org.springframework.boot.test.util.EnvironmentTestUtils/g \
-e s/org.springframework.boot.test.IntegrationTest/\
org.springframework.boot.test.context.IntegrationTest/g \
-e s/org.springframework.boot.test.IntegrationTestPropertiesListener/\
org.springframework.boot.test.context.IntegrationTestPropertiesListener/g \
-e s/org.springframework.boot.test.OutputCapture/\
org.springframework.boot.test.rule.OutputCapture/g \
-e s/org.springframework.boot.test.SpringApplicationConfiguration/\
org.springframework.boot.test.context.SpringApplicationConfiguration/g \
-e s/org.springframework.boot.test.SpringApplicationContextLoader/\
org.springframework.boot.test.context.SpringApplicationContextLoader/g \
-e s/org.springframework.boot.test.SpringBootMockServletContext/\
org.springframework.boot.test.mock.web.SpringBootMockServletContext/g \
-e s/org.springframework.boot.test.TestRestTemplate/\
org.springframework.boot.test.web.client.TestRestTemplate/g \
-e s/org.springframework.boot.test.WebIntegrationTest/\
org.springframework.boot.test.context.web.WebIntegrationTest/g {} \;
See gh-5293
9 years ago
Stephane Nicoll
2526a54e31
Polish contribution
...
Closes gh-5337
9 years ago
Andy Wilkinson
44ddfcc7fa
Upgrade copyright headers of all files changed in 2016
9 years ago
Phillip Webb
1cc1fc6431
Use AssertJ in spring-boot-samples
...
See gh-5083
9 years ago
Phillip Webb
fbaf209240
Move master to 1.4.0.BUILD-SNAPSHOT
9 years ago
Spring Buildmaster
504d3e97ba
Next development version
9 years ago
Spring Buildmaster
8db59059a5
Next Development Version
9 years ago
Eddú Meléndez
1b81d9f0b5
Add support for server.server-header property
...
Add a `server.server-header` property which can be used to override the
`server` header usually sent back automatically by Tomcat/Jetty or
Undertow.
See https://www.owasp.org/index.php/Securing_tomcat for background.
Fixes gh-4461
Closes gh-4504
9 years ago
Andy Wilkinson
0e09408f91
Merge branch '1.2.x'
9 years ago
Ivan Chen
d6bd120b2c
Remove unused test.css from spring-boot-sample-tomcat
...
Closes gh-4606
9 years ago
Spring Buildmaster
3f6f57a80e
Next Development Version
9 years ago
Huang YunKun
1c5e445554
Update the samples to use @WebIntegrationTest and randomPort=true
...
Closes gh-4294
Closes gh-4271
9 years ago
Phillip Webb
1e4d974ec0
Merge remote-tracking branch 'local12x/1.2.x'
9 years ago
Phillip Webb
a79131f8d2
Organize imports with new settings
...
See gh-4234
9 years ago
Spring Buildmaster
2b38a861e3
Next Development Version
9 years ago
Phillip Webb
c9fb9916b8
Reformat code using Eclipse Mars
9 years ago
Phillip Webb
e473364e4e
Merge branch '1.2.x'
9 years ago
Phillip Webb
6ab376e2e8
Reformat code use Eclipse Mars
9 years ago
Spring Buildmaster
9409c49c10
Next development version
9 years ago
Stephane Nicoll
7c0c953f81
Add value alias for SpringApplicationConfiguration
...
Given that Spring Boot uses java config accross the board, a new `value`
attribute is now aliased to the existing `classes` attribute such that
one could write the following:
@SpringApplicationConfiguration(MyConfig.class)
public class MyTest {}
Closes gh-3635
9 years ago
Spring Buildmaster
7ce391db4f
Next development version
10 years ago
Phillip Webb
d213cc05d5
Polish
10 years ago
Andy Wilkinson
00d594dcda
Replace GzipFilter and Tomcat compression with general purpose approach
...
Closes gh-3296
10 years ago
Spring Buildmaster
5d81c87b43
Next Development Version
10 years ago
Spring Buildmaster
e03c11dda8
Next development version
10 years ago
Phillip Webb
a57a88f5cf
Move master to 1.3.0.BUILD-SNAPSHOT
10 years ago
Spring Buildmaster
8f0ad02237
Next development version
10 years ago
Spring Buildmaster
60725cd8bd
Next development version
10 years ago
Phillip Webb
978cf8c2e6
Polish @WebIntegrationTest support
...
See gh-2299
10 years ago
Spring Buildmaster
1a788c1741
Next development version
10 years ago
Phillip Webb
21115f29cf
Remove accidental SampleControllerAdvice test
...
Accidentally committed in 4668f59723
See gh-1950
10 years ago
Phillip Webb
4668f59723
Improve relaxed enum binding
...
Update RelaxedConversionService to support more relaxed enum binding.
Fixes gh-1950
10 years ago
Phillip Webb
d039f43107
Update samples to use @SpringBootApplication
...
Update the relevant samples to use the new @SpringBootApplication
annotation.
Closes gh-1842
10 years ago
Stephane Nicoll
249e09d9bc
Switch master to 1.2.0.BUILD-SNAPSHOT
11 years ago
Spring Buildmaster
40327e1ae6
Next development version
11 years ago
Phillip Webb
fa88c481a5
Remote trailing whitespace
11 years ago
Spring Buildmaster
981669b7c0
Next development version
11 years ago
Phillip Webb
200cd535c2
Revert "Next development version"
...
This reverts commit 67189477fe
.
11 years ago
Spring Buildmaster
67189477fe
Next development version
11 years ago
Spring Buildmaster
542f3cbda8
Next development version
11 years ago
Phillip Webb
a2efe17fc9
Polish
11 years ago
Spring Buildmaster
4ca26a21dc
Next development version
11 years ago
Spring Buildmaster
05ed7b3bcd
Next development version
11 years ago
Phillip Webb
3007a777d0
Roll back to 1.1.0.BUILD-SNAPSHOT
11 years ago
Spring Buildmaster
c650f2391e
Next development version
11 years ago
Phillip Webb
64a835e91a
Move master to 1.1.0.BUILD-SNAPSHOT
11 years ago
Spring Buildmaster
d3954a1703
Next development version
11 years ago
Phillip Webb
fad5ce45db
Polish
11 years ago
Dave Syer
7b07fe8ce0
Convert remaining samples to use random port
...
Partial fix for gh-337. See also gh-607 which complements this, but might
conflict on a merge.
11 years ago
Spring Buildmaster
a5864ebcd0
Next development version
11 years ago
Spring Buildmaster
15e9dbe98b
Next development version
11 years ago
Phillip Webb
1e68b7e0a9
Remove superfluous <packaging> tags from POMs
11 years ago
Phillip Webb
0af7f7e347
Add missing POM info
11 years ago
Phillip Webb
488b03387f
Polish POM formatting
11 years ago
Phillip Webb
6f9bb233ad
Revert "Next development version"
...
This reverts commit b67bb70ee3
.
11 years ago
Spring Buildmaster
b67bb70ee3
Next development version
11 years ago
Phillip Webb
ac4cdd33c3
Revert "Next development version"
...
This reverts commit 1d0eea12eb
.
Returning to 1.0.0.BUILD-SNAPSHOT for an updated release.
11 years ago
Spring Buildmaster
1d0eea12eb
Next development version
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
80ac1fb0cd
Polish
11 years ago
Dave Syer
7a285cf65d
Convert all sample tests to @IntegrationTest where appropriate
...
Makes them a lot more readable IMO, and also enables @Autowiring
from the context into the test case (sweeet). I added @DirtiesContext
to all of them as well to be on the safe side, but possbly that can be
optimized in some way as well.
11 years ago
Sebastien Deleuze
ab6c8dfee3
Use org.springframework.boot groupId in spring-boot-samples
...
Use org.springframework.boot instead of ${project.groupId}
groupId in order to make it easier to use spring-boot-samples
modules as a starting point for new projects.
11 years ago
Spring Buildmaster
b0d4e8ae69
Next development version
11 years ago
Spring Buildmaster
cb8668a151
Release version 1.0.0.RC4
11 years ago
Phillip Webb
cf23b519d2
Polish
11 years ago
Dave Syer
b2b487ee5f
Add ServletRegistrationBean for DispatcherServlet
...
Mapping is exposed via server.servletPath.
Fixes gh-379
11 years ago
Spring Buildmaster
1367d57e8c
Next development version
11 years ago
Spring Buildmaster
eaff1677a7
Release version 1.0.0.RC3
11 years ago
Phillip Webb
0160760568
Apply latest eclipse cleanup rules
11 years ago
Phillip Webb
68293f34af
Upgrade version to 1.0.0.BUILD-SNAPSHOT
...
Fixes fg-243
11 years ago
Dave Syer
559f907b54
Use explicit test dependencies in samples
11 years ago
Phillip Webb
1bcd3de7b5
Polish
11 years ago
Dave Syer
f448e79f29
Remove long package names from samples
...
Long package names are really unnecessary in samples and they
just clutter things up. Also Spring Loaded doesn't work with
org.sfw packages, so to demo that technology you need a
different package name.
11 years ago
Dave Syer
b72002142d
Split MessageConverters auto config out into separate class
11 years ago
Phillip Webb
64f32893bb
Source format and clean-up
11 years ago
Phillip Webb
b772f7c2e4
Polish
...
Minor formatting and consistent copyright header.
11 years ago
Dave Syer
345c0fc5a4
Add SpringApplicationBuilder
...
Builder for SpringApplication and ApplicationContext instances with
convenient fluent API and context hierarchy support. Simple example
of a context hierarchy:
new SpringApplicationBuilder(ParentConfig.class)
.child(ChildConfig.class).run(args);
Another common use case is setting default arguments, e.g.
active Spring profiles, to set up the environment for an application:
new SpringApplicationBuilder(Application.class).profiles("server")
.defaultArgs("--transport=local").run(args);
If your needs are simpler, consider using the static convenience
methods in SpringApplication instead.
[#49703716 ] [bs-116] Parent context for some beans maybe?
11 years ago
Phillip Webb
c544921eaa
Polish whitespace
11 years ago
Dave Syer
abb1420486
Fixes #55 : stop() connector to unbind socket
...
The `Tomcat.start()` has to happen to initialize the `ServletContext`
but we can immediately stop the connector and then restart it when
the context is finished refreshing. Seems to make curl fail quickly
if an app is slow to start.
11 years ago
Phillip Webb
a33425920b
Rework POMs to support automated CI release
11 years ago
Phillip Webb
16cf2faa1b
Remove sample gradle builds
...
Remove sample gradle builds since they are not run during the regular
build and would need to be manually updated after a release.
11 years ago
Dave Syer
38e565e920
Back to SNAPSHOT for dev
11 years ago
Dave Syer
b634b3bde6
Update to 0.5.0.M2
11 years ago
Dave Syer
621116c9b8
ManagementServerConfiguration security
...
Management endpoints are still secure by default if
Spring Security is present, but now the default
user details have an ADMIN role, and a random password
(which is logged at INFO level if not overridden).
To override you add management.user.password (name, role)
to external properties.
[Fixes #53029715 ] [bs-203]
11 years ago
Biju Kunjummen
fa3b593568
Removed spring-boot related version from dependencies of samples
11 years ago
Phillip Webb
878ff13620
Documentation updates
11 years ago
Dave Syer
42bb793155
Add ServletContextListener to embedded web app
...
* User can add @Bean of type EventListener (e.g.
ServletContextListener)
[Fixes #54112999 ] [bs-254]
11 years ago
Phillip Webb
d86bf66645
Add parent relativePath
...
Update sample applications to correctly refer to parent relativePath.
11 years ago
Dave Syer
3922a7f526
Reinstate junit dependencies in starters
11 years ago
Dave Syer
4bb5de02e7
Switch back to SNAPSHOT for dev
11 years ago
Dave Syer
68e5a7e887
Bump version to 0.5.0.M1
11 years ago
Phillip Webb
3bb79db579
Renamed spring-boot-ups -> spring-boot-starter
11 years ago
Phillip Webb
0fee00f0d7
Add gradle example builds
...
Add gradle example builds to spring-boot-sample-tomcat and
spring-boot-sample-traditional.
Issue: #53129653
11 years ago
Phillip Webb
b665a2bb1d
Renamed packages
...
Issue: #54095231
11 years ago
Dave Syer
2098e23fca
Change package names zero->boot
...
* actuator -> boot-ops
* cli -> boot-cli
* launcher -> boot-load
* autoconfig -> boot-config
* bootstrap -> boot-strap
* starters -> boot-up
[#54095231 ] [bs-253] Refactor Zero->Boot
11 years ago