- 11 Mar, 2014 5 commits
-
-
Dave Syer authored
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.
-
Dave Syer authored
Allowing use of embededded container in @SpringApplicationConfiguration tests, e.g. ``` @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = Config.class) @WebAppConfiguration @IntegrationTest public class SpringApplicationIntegrationTestTests { @Test public void nestedConfigClasses() { String body = new RestTemplate().getForObject("http://localhost:8080/", String.class); assertEquals("Hello World", body); } @Configuration @EnableWebMvc @RestController protected static class Config { @Bean public DispatcherServlet dispatcherServlet() { return new DispatcherServlet(); } @Bean public EmbeddedServletContainerFactory embeddedServletContainer() { return new TomcatEmbeddedServletContainerFactory(); } @RequestMapping("/") public String home() { return "Hello World"; } } } ``` Fixes gh-473
-
Chris Beams authored
-
Chris Beams authored
Per discussion: fixes gh-467
-
Dave Syer authored
-
- 10 Mar, 2014 4 commits
-
-
Piotr Maj authored
Fixes gh-470
-
Dave Syer authored
We had been making a special case for logback.xml anyway, so extending that to simply deleting recursively all of src/main/resources (or equivalent) from target/classes (or equivalent) seems like it's perfectly justifiable. Fixes gh-451
-
Dave Syer authored
The management.contextPath property should now be respected in a secure application, whether or not the management.port is different. Added some test cases in the sample to verify. Fixes gh-469
-
Andy Wilkinson authored
Boot promotes the use of a templates directory for housing view templates. Include this directory by default when building a jar file from a CLI app. Fixes #455
-
- 09 Mar, 2014 2 commits
-
-
Piotr Maj authored
Fixes gh-463
-
Andy Piper authored
Explicitly link to install.txt in source repo to avoid issues on projects.spring.io with a broken relative link ... also fix this for rendered markdown on GH itself :-)
-
- 08 Mar, 2014 3 commits
-
-
Dave Syer authored
-
Andy Piper authored
-
Andy Piper authored
-
- 07 Mar, 2014 4 commits
-
-
Sebastien Deleuze authored
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.
-
Dave Syer authored
Fixes gh-447
-
Josh Long authored
-
Dave Syer authored
-
- 06 Mar, 2014 2 commits
-
-
Dave Syer authored
This turns out to affect JPA, but only because it looks for a URL for the root of the classpath using ClassLoader.getResource("") which barfs in an app launched from an executable JAR. It's easy to make a special case for "" in the class loader, so I went ahead and did that. Possibly need to think what the implication of getResources("") is as well (not tested in an app yet). Fixes gh-420
-
Dave Syer authored
Fixes gh-441
-
- 05 Mar, 2014 7 commits
-
-
Dave Syer authored
-
Dave Syer authored
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
-
Dave Syer authored
Fixes gh-438
-
Dave Syer authored
Fixes gh-417
-
Dave Syer authored
RC4 added a ServletRegistrationBaen for teh DispatcherServlet and we didn't register a MultipartConfigElement if one was present. Fixes gh-427
-
Dave Syer authored
Fixes gh-424
-
Dave Syer authored
Fixed gh-428
-
- 04 Mar, 2014 13 commits
-
-
Dave Syer authored
Fixes gh-430
-
Dave Syer authored
Fixes gh-433
-
Dave Syer authored
-
Dave Syer authored
... leaving only the embedded Tomcat enabling feature (registering the WsSci). Fixes part of gh-65
-
Andy Wilkinson authored
-
Phillip Webb authored
-
Phillip Webb authored
-
Phillip Webb authored
-
Spring Buildmaster authored
-
Spring Buildmaster authored
-
Phillip Webb authored
* patch-2: Correct link to samples.
-
Adam Brodziak authored
Fixes gh-415
-
Phillip Webb authored
Rename ErrorWrapperEmbeddedServletContainerFactory to ErrorPageFilter and extend AbstractConfigurableEmbeddedServletContainer rather than AbstractEmbeddedServletContainerFactory. Fixes gh-416
-