"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java" between
spring-boot-2.7.3.tar.gz and spring-boot-2.7.4.tar.gz

About: Spring Boot helps to create Spring-powered, production-grade applications and services.

ThymeleafAutoConfiguration.java  (spring-boot-2.7.3):ThymeleafAutoConfiguration.java  (spring-boot-2.7.4)
skipping to change at line 103 skipping to change at line 103
this.properties = properties; this.properties = properties;
this.applicationContext = applicationContext; this.applicationContext = applicationContext;
checkTemplateLocationExists(); checkTemplateLocationExists();
} }
private void checkTemplateLocationExists() { private void checkTemplateLocationExists() {
boolean checkTemplateLocation = this.properties.isCheckTe mplateLocation(); boolean checkTemplateLocation = this.properties.isCheckTe mplateLocation();
if (checkTemplateLocation) { if (checkTemplateLocation) {
TemplateLocation location = new TemplateLocation( this.properties.getPrefix()); TemplateLocation location = new TemplateLocation( this.properties.getPrefix());
if (!location.exists(this.applicationContext)) { if (!location.exists(this.applicationContext)) {
logger.warn("Cannot find template locatio logger.warn("Cannot find template locatio
n: " + location + " (please add some templates or check " n: " + location
+ "your Thymeleaf configu + " (please add some temp
ration)"); lates, check your Thymeleaf configuration, or set spring.thymeleaf."
+ "check-template-locatio
n=false)");
} }
} }
} }
@Bean @Bean
SpringResourceTemplateResolver defaultTemplateResolver() { SpringResourceTemplateResolver defaultTemplateResolver() {
SpringResourceTemplateResolver resolver = new SpringResou rceTemplateResolver(); SpringResourceTemplateResolver resolver = new SpringResou rceTemplateResolver();
resolver.setApplicationContext(this.applicationContext); resolver.setApplicationContext(this.applicationContext);
resolver.setPrefix(this.properties.getPrefix()); resolver.setPrefix(this.properties.getPrefix());
resolver.setSuffix(this.properties.getSuffix()); resolver.setSuffix(this.properties.getSuffix());
 End of changes. 1 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)