Browse Source

Switch to thymeleaf-spring4

pull/176/head
Dave Syer 12 years ago
parent
commit
e2c962ac28
  1. 3
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java
  2. 2
      spring-boot-autoconfigure/pom.xml
  3. 6
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
  4. 2
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
  5. 4
      spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java
  6. 2
      spring-boot-cli/samples/ui.groovy
  7. 4
      spring-boot-dependencies/pom.xml
  8. 2
      spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml
  9. 2
      spring-boot-samples/spring-boot-sample-secure/pom.xml
  10. 2
      spring-boot-samples/spring-boot-sample-web-ui/pom.xml

3
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java

@ -45,6 +45,7 @@ import org.springframework.context.annotation.ConditionContext; @@ -45,6 +45,7 @@ import org.springframework.context.annotation.ConditionContext;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.expression.MapAccessor;
import org.springframework.core.Ordered;
import org.springframework.core.type.AnnotatedTypeMetadata;
import org.springframework.expression.Expression;
import org.springframework.expression.spel.standard.SpelExpressionParser;
@ -107,7 +108,7 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom @@ -107,7 +108,7 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
@ConditionalOnMissingBean(BeanNameViewResolver.class)
public BeanNameViewResolver beanNameViewResolver() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
resolver.setOrder(0);
resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
return resolver;
}

2
spring-boot-autoconfigure/pom.xml

@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring3</artifactId>
<artifactId>thymeleaf-spring4</artifactId>
<optional>true</optional>
</dependency>
<dependency>

6
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java

@ -39,9 +39,9 @@ import org.springframework.core.io.DefaultResourceLoader; @@ -39,9 +39,9 @@ import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.ResourceLoader;
import org.thymeleaf.dialect.IDialect;
import org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect;
import org.thymeleaf.spring3.SpringTemplateEngine;
import org.thymeleaf.spring3.resourceresolver.SpringResourceResourceResolver;
import org.thymeleaf.spring3.view.ThymeleafViewResolver;
import org.thymeleaf.spring4.SpringTemplateEngine;
import org.thymeleaf.spring4.resourceresolver.SpringResourceResourceResolver;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
import org.thymeleaf.templateresolver.ITemplateResolver;
import org.thymeleaf.templateresolver.TemplateResolver;

2
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java

@ -155,7 +155,7 @@ public class WebMvcAutoConfiguration { @@ -155,7 +155,7 @@ public class WebMvcAutoConfiguration {
@ConditionalOnBean(View.class)
public BeanNameViewResolver beanNameViewResolver() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
resolver.setOrder(0);
resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
return resolver;
}

4
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java

@ -32,8 +32,8 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon @@ -32,8 +32,8 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
import org.springframework.web.servlet.support.RequestContext;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.Context;
import org.thymeleaf.spring3.view.ThymeleafView;
import org.thymeleaf.spring3.view.ThymeleafViewResolver;
import org.thymeleaf.spring4.view.ThymeleafView;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
import org.thymeleaf.templateresolver.ITemplateResolver;
import org.thymeleaf.templateresolver.TemplateResolver;

2
spring-boot-cli/samples/ui.groovy

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
package app
@Grab("thymeleaf-spring3")
@Grab("thymeleaf-spring4")
@Controller
class Example {

4
spring-boot-dependencies/pom.xml

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
<spring-mobile.version>1.1.0.RELEASE</spring-mobile.version>
<spring-security.version>3.2.0.RELEASE</spring-security.version>
<thymeleaf.version>2.1.2.RELEASE</thymeleaf.version>
<thymeleaf-extras-springsecurity3.version>2.1.0.RELEASE</thymeleaf-extras-springsecurity3.version>
<thymeleaf-extras-springsecurity3.version>2.1.1.RELEASE</thymeleaf-extras-springsecurity3.version>
<thymeleaf-layout-dialect.version>1.2</thymeleaf-layout-dialect.version>
<tomcat.version>7.0.47</tomcat.version>
<crashub.version>1.3.0-beta11</crashub.version>
@ -489,7 +489,7 @@ @@ -489,7 +489,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring3</artifactId>
<artifactId>thymeleaf-spring4</artifactId>
<version>${thymeleaf.version}</version>
</dependency>
<dependency>

2
spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml

@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring3</artifactId>
<artifactId>thymeleaf-spring4</artifactId>
</dependency>
</dependencies>
<build>

2
spring-boot-samples/spring-boot-sample-secure/pom.xml

@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring3</artifactId>
<artifactId>thymeleaf-spring4</artifactId>
</dependency>
</dependencies>
<build>

2
spring-boot-samples/spring-boot-sample-web-ui/pom.xml

@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring3</artifactId>
<artifactId>thymeleaf-spring4</artifactId>
</dependency>
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>

Loading…
Cancel
Save