File tree 8 files changed +25
-13
lines changed
src/main/java/com/codingapi/springboot/framework
springboot-starter-data-fast
springboot-starter-id-generator
springboot-starter-security-jwt
src/main/java/com/codingapi/springboot/security
8 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 12
12
13
13
<groupId >com.codingapi.springboot</groupId >
14
14
<artifactId >springboot-parent</artifactId >
15
- <version >1.5.12 </version >
15
+ <version >1.5.13 </version >
16
16
17
17
<url >https://github.com/codingapi/springboot-framewrok</url >
18
18
<name >springboot-parent</name >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >1.5.12 </version >
8
+ <version >1.5.13 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >1.5.12 </version >
8
+ <version >1.5.13 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >1.5.12 </version >
9
+ <version >1.5.13 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-security-jwt</artifactId >
Original file line number Diff line number Diff line change 3
3
import com .codingapi .springboot .security .configurer .HttpSecurityConfigurer ;
4
4
import com .codingapi .springboot .security .controller .VersionController ;
5
5
import com .codingapi .springboot .security .filter .*;
6
- import com .codingapi .springboot .security .handler .ServletExceptionHandler ;
7
6
import com .codingapi .springboot .security .jwt .Jwt ;
8
7
import com .codingapi .springboot .security .properties .SecurityJwtProperties ;
9
8
import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
22
21
import org .springframework .security .crypto .password .PasswordEncoder ;
23
22
import org .springframework .security .provisioning .InMemoryUserDetailsManager ;
24
23
import org .springframework .security .web .SecurityFilterChain ;
25
- import org .springframework .web .servlet .HandlerExceptionResolver ;
26
24
import org .springframework .web .servlet .config .annotation .CorsRegistry ;
27
25
import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
28
26
@@ -56,11 +54,6 @@ public PasswordEncoder passwordEncoder() {
56
54
}
57
55
58
56
59
- @ Bean
60
- public HandlerExceptionResolver servletExceptionHandler () {
61
- return new ServletExceptionHandler ();
62
- }
63
-
64
57
@ Bean
65
58
@ ConditionalOnMissingBean
66
59
public SecurityLoginHandler securityLoginHandler (){
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >springboot-parent</artifactId >
8
- <version >1.5.12 </version >
8
+ <version >1.5.13 </version >
9
9
</parent >
10
10
<artifactId >springboot-starter</artifactId >
11
11
57
57
<artifactId >httpclient</artifactId >
58
58
</dependency >
59
59
60
+ <dependency >
61
+ <groupId >org.springframework</groupId >
62
+ <artifactId >spring-webmvc</artifactId >
63
+ </dependency >
64
+
65
+ <dependency >
66
+ <groupId >org.apache.tomcat.embed</groupId >
67
+ <artifactId >tomcat-embed-core</artifactId >
68
+ </dependency >
69
+
60
70
<dependency >
61
71
<groupId >org.springframework.boot</groupId >
62
72
<artifactId >spring-boot-starter-web</artifactId >
Original file line number Diff line number Diff line change 1
1
package com .codingapi .springboot .framework ;
2
2
3
+ import com .codingapi .springboot .framework .servlet .ServletExceptionHandler ;
4
+ import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
5
+ import org .springframework .context .annotation .Bean ;
3
6
import org .springframework .context .annotation .Configuration ;
7
+ import org .springframework .web .servlet .HandlerExceptionResolver ;
4
8
5
9
@ Configuration
6
10
public class AutoConfiguration {
7
11
12
+ @ Bean
13
+ @ ConditionalOnMissingBean
14
+ public HandlerExceptionResolver servletExceptionHandler () {
15
+ return new ServletExceptionHandler ();
16
+ }
8
17
9
18
}
Original file line number Diff line number Diff line change 1
- package com .codingapi .springboot .security . handler ;
1
+ package com .codingapi .springboot .framework . servlet ;
2
2
3
3
import com .codingapi .springboot .framework .exception .LocaleMessageException ;
4
4
import lombok .extern .slf4j .Slf4j ;
You can’t perform that action at this time.
0 commit comments