File tree Expand file tree Collapse file tree 8 files changed +25
-13
lines changed
springboot-starter-data-fast
springboot-starter-id-generator
springboot-starter-security-jwt
src/main/java/com/codingapi/springboot/security
src/main/java/com/codingapi/springboot/framework Expand file tree Collapse file tree 8 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1212
1313 <groupId >com.codingapi.springboot</groupId >
1414 <artifactId >springboot-parent</artifactId >
15- <version >1.5.12 </version >
15+ <version >1.5.13 </version >
1616
1717 <url >https://github.com/codingapi/springboot-framewrok</url >
1818 <name >springboot-parent</name >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >1.5.12 </version >
8+ <version >1.5.13 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >1.5.12 </version >
8+ <version >1.5.13 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >1.5.12 </version >
9+ <version >1.5.13 </version >
1010 </parent >
1111
1212 <artifactId >springboot-starter-security-jwt</artifactId >
Original file line number Diff line number Diff line change 33import com .codingapi .springboot .security .configurer .HttpSecurityConfigurer ;
44import com .codingapi .springboot .security .controller .VersionController ;
55import com .codingapi .springboot .security .filter .*;
6- import com .codingapi .springboot .security .handler .ServletExceptionHandler ;
76import com .codingapi .springboot .security .jwt .Jwt ;
87import com .codingapi .springboot .security .properties .SecurityJwtProperties ;
98import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
2221import org .springframework .security .crypto .password .PasswordEncoder ;
2322import org .springframework .security .provisioning .InMemoryUserDetailsManager ;
2423import org .springframework .security .web .SecurityFilterChain ;
25- import org .springframework .web .servlet .HandlerExceptionResolver ;
2624import org .springframework .web .servlet .config .annotation .CorsRegistry ;
2725import org .springframework .web .servlet .config .annotation .WebMvcConfigurer ;
2826
@@ -56,11 +54,6 @@ public PasswordEncoder passwordEncoder() {
5654 }
5755
5856
59- @ Bean
60- public HandlerExceptionResolver servletExceptionHandler () {
61- return new ServletExceptionHandler ();
62- }
63-
6457 @ Bean
6558 @ ConditionalOnMissingBean
6659 public SecurityLoginHandler securityLoginHandler (){
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.codingapi.springboot</groupId >
77 <artifactId >springboot-parent</artifactId >
8- <version >1.5.12 </version >
8+ <version >1.5.13 </version >
99 </parent >
1010 <artifactId >springboot-starter</artifactId >
1111
5757 <artifactId >httpclient</artifactId >
5858 </dependency >
5959
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+
6070 <dependency >
6171 <groupId >org.springframework.boot</groupId >
6272 <artifactId >spring-boot-starter-web</artifactId >
Original file line number Diff line number Diff line change 11package com .codingapi .springboot .framework ;
22
3+ import com .codingapi .springboot .framework .servlet .ServletExceptionHandler ;
4+ import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
5+ import org .springframework .context .annotation .Bean ;
36import org .springframework .context .annotation .Configuration ;
7+ import org .springframework .web .servlet .HandlerExceptionResolver ;
48
59@ Configuration
610public class AutoConfiguration {
711
12+ @ Bean
13+ @ ConditionalOnMissingBean
14+ public HandlerExceptionResolver servletExceptionHandler () {
15+ return new ServletExceptionHandler ();
16+ }
817
918}
Original file line number Diff line number Diff line change 1- package com .codingapi .springboot .security . handler ;
1+ package com .codingapi .springboot .framework . servlet ;
22
33import com .codingapi .springboot .framework .exception .LocaleMessageException ;
44import lombok .extern .slf4j .Slf4j ;
You can’t perform that action at this time.
0 commit comments