File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
java/ru/mystamps/web/support/spring/boot Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package ru .mystamps .web .support .spring .boot ;
19
19
20
- import java .util .EnumSet ;
21
-
22
- import javax .servlet .DispatcherType ;
23
- import javax .servlet .Filter ;
24
-
25
- import org .springframework .beans .factory .annotation .Qualifier ;
26
20
import org .springframework .context .ConfigurableApplicationContext ;
27
- import org .springframework .context .annotation .Bean ;
28
21
import org .springframework .context .annotation .Import ;
29
22
30
23
import org .springframework .boot .SpringApplication ;
31
24
import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
32
- import org .springframework .boot .context .embedded .FilterRegistrationBean ;
33
25
34
26
import org .togglz .core .context .StaticFeatureManagerProvider ;
35
27
import org .togglz .core .manager .FeatureManager ;
@@ -58,16 +50,4 @@ public static void main(String... args) {
58
50
StaticFeatureManagerProvider .setFeatureManager (featureManager );
59
51
}
60
52
61
- // TODO: remove @Qualifier and inject by type
62
- // See for details: https://github.com/spring-projects/spring-boot/issues/2774
63
- @ Bean
64
- public FilterRegistrationBean getSpringSecurityFilterChainBindedToError (
65
- @ Qualifier ("springSecurityFilterChain" ) Filter springSecurityFilterChain ) {
66
-
67
- FilterRegistrationBean registration = new FilterRegistrationBean ();
68
- registration .setFilter (springSecurityFilterChain );
69
- registration .setDispatcherTypes (EnumSet .allOf (DispatcherType .class ));
70
- return registration ;
71
- }
72
-
73
53
}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ server.compression.mime-types[2]: text/css
29
29
server.compression.mime-types[3] : application/javascript
30
30
server.compression.mime-types[4] : application/xml
31
31
32
+ security.filter-dispatcher-types : REQUEST, ERROR
33
+
32
34
app.mail.admin.email : slava.semushin@gmail.com
33
35
app.mail.admin.lang : ru
34
36
app.mail.robot.email : dont-reply@my-stamps.ru
You can’t perform that action at this time.
0 commit comments