使用Thymeleaf说要添加依赖
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.22</version>
</dependency>
并更改application.properties 或 application.yml的配置属性
spring.thymeleaf.mode=LEGACYHTML5
但是我之前是SpringMvc项目,这个application.properties文件是新建的,我觉得我读取它是没问题的但是就是里面的这个设置没有作用,读取代码
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:application.properties</value>
</list>
</property>
</bean>
@ImportResource("classpath:other-config.xml")
现在的问题就是只读取了,但里面的配置没有作用