File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed
spring-boot-autoconfigure
src/main/java/org/springframework/boot/autoconfigure/thymeleaf Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 623
623
<artifactId >thymeleaf-extras-springsecurity4</artifactId >
624
624
<optional >true</optional >
625
625
</dependency >
626
+ <dependency >
627
+ <groupId >org.thymeleaf.extras</groupId >
628
+ <artifactId >thymeleaf-extras-springsecurity5</artifactId >
629
+ <optional >true</optional >
630
+ </dependency >
626
631
<dependency >
627
632
<groupId >javax.jms</groupId >
628
633
<artifactId >javax.jms-api</artifactId >
Original file line number Diff line number Diff line change @@ -327,14 +327,34 @@ public DataAttributeDialect dialect() {
327
327
@ ConditionalOnClass ({ SpringSecurityDialect .class })
328
328
protected static class ThymeleafSecurityDialectConfiguration {
329
329
330
+ private final Log logger = LogFactory
331
+ .getLog (ThymeleafSecurityDialectConfiguration .class );
332
+
330
333
@ Bean
331
334
@ ConditionalOnMissingBean
332
335
public SpringSecurityDialect securityDialect () {
336
+ if (this .logger .isWarnEnabled ()) {
337
+ this .logger .warn ("Auto-configuration for thymeleaf-extras-springsecurity4"
338
+ + " is deprecated in favour of thymeleaf-extras-springsecurity5" );
339
+ }
333
340
return new SpringSecurityDialect ();
334
341
}
335
342
336
343
}
337
344
345
+ @ Configuration
346
+ @ ConditionalOnClass ({
347
+ org .thymeleaf .extras .springsecurity5 .dialect .SpringSecurityDialect .class })
348
+ protected static class ThymeleafSecurity5DialectConfiguration {
349
+
350
+ @ Bean
351
+ @ ConditionalOnMissingBean
352
+ public org .thymeleaf .extras .springsecurity5 .dialect .SpringSecurityDialect securityDialect () {
353
+ return new org .thymeleaf .extras .springsecurity5 .dialect .SpringSecurityDialect ();
354
+ }
355
+
356
+ }
357
+
338
358
@ Configuration
339
359
@ ConditionalOnClass (Java8TimeDialect .class )
340
360
protected static class ThymeleafJava8TimeDialect {
Original file line number Diff line number Diff line change 172
172
<statsd-client .version>3.1.0</statsd-client .version>
173
173
<sun-mail .version>${javax-mail.version} </sun-mail .version>
174
174
<thymeleaf .version>3.0.10.RELEASE</thymeleaf .version>
175
+ <!-- Deprecated in favour of thymeleaf-extras-springsecurity.version -->
175
176
<thymeleaf-extras-springsecurity4 .version>3.0.3.RELEASE</thymeleaf-extras-springsecurity4 .version>
177
+ <thymeleaf-extras-springsecurity .version>${thymeleaf-extras-springsecurity4.version} </thymeleaf-extras-springsecurity .version>
176
178
<thymeleaf-layout-dialect .version>2.3.0</thymeleaf-layout-dialect .version>
177
179
<thymeleaf-extras-data-attribute .version>2.0.1</thymeleaf-extras-data-attribute .version>
178
180
<thymeleaf-extras-java8time .version>3.0.1.RELEASE</thymeleaf-extras-java8time .version>
2951
2953
<dependency >
2952
2954
<groupId >org.thymeleaf.extras</groupId >
2953
2955
<artifactId >thymeleaf-extras-springsecurity4</artifactId >
2954
- <version >${thymeleaf-extras-springsecurity4.version} </version >
2956
+ <version >${thymeleaf-extras-springsecurity.version} </version >
2957
+ </dependency >
2958
+ <dependency >
2959
+ <groupId >org.thymeleaf.extras</groupId >
2960
+ <artifactId >thymeleaf-extras-springsecurity5</artifactId >
2961
+ <version >${thymeleaf-extras-springsecurity.version} </version >
2955
2962
</dependency >
2956
2963
<dependency >
2957
2964
<groupId >org.webjars</groupId >
You can’t perform that action at this time.
0 commit comments