Upgrade to spring-javaformat 0.0.11
This commit is contained in:
@@ -51,8 +51,7 @@ public class WebConfig extends WebMvcConfigurerAdapter {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void configureDefaultServletHandling(
|
||||
DefaultServletHandlerConfigurer configurer) {
|
||||
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
|
||||
configurer.enable();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,7 @@ public class SampleTraditionalApplicationTests {
|
||||
|
||||
@Test
|
||||
public void testStaticPage() throws Exception {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/index.html",
|
||||
String.class);
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/index.html", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
String body = entity.getBody();
|
||||
assertThat(body).contains("<html>").contains("<h1>Hello</h1>");
|
||||
|
||||
Reference in New Issue
Block a user