stanlick
stanlick

Reputation: 1462

spring.view.prefix: not being applied to simple view name in Spring Boot

First off, my POM is correct and I understand the caveats with using JSP with Boot! The following properties

    @Value("${spring.view.prefix:}")
    private String prefix = "";

    @Value("${spring.view.suffix:}")
    private String suffix = "";

are not being injected into WebMvcAutoConfigurationAdapter and I cannot determine why. Has anyone else had this problem? I'm using

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.3.0.M5</version>
</parent>  

Upvotes: 3

Views: 6431

Answers (1)

Sanjay
Sanjay

Reputation: 8965

Seems they are changing the property names with Spring Boot 1.3. Now those would be spring.mvc.view.prefix and spring.mvc.view.suffix, as per the reference material.

Upvotes: 13

Related Questions