谁能给一个完整的修改项目名和包名的详细步骤

0 5251462 3个月前 126次点击

谁能给一个完整的修改包名的详细步骤
每次把cn.stylefeng.guns修改为cn.stylefeng.g后,启动就报错

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.1.6.RELEASE)

2020-06-27 22:13:55.609 INFO 5808 --- [ main] cn.stylefeng.g.GunsApplication : Starting GunsApplication on DESKTOP-HV1HO2I with PID 5808 (D:\workspace-sts\guns-vip-master\survey-main\target\classes started by FusionBingo in D:\workspace-sts\guns-vip-master\survey-main)
2020-06-27 22:13:55.613 DEBUG 5808 --- [ main] cn.stylefeng.g.GunsApplication : Running with Spring Boot v2.1.6.RELEASE, Spring v5.1.8.RELEASE
2020-06-27 22:13:55.613 INFO 5808 --- [ main] cn.stylefeng.g.GunsApplication : The following profiles are active: local
2020-06-27 22:13:57.352 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'webConfig' of type [cn.stylefeng.g.config.web.WebConfig$$EnhancerBySpringCGLIB$$f9e8c898] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.412 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'druidStatPointcut' of type [org.springframework.aop.support.JdkRegexpMethodPointcut] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.417 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'druidStatInterceptor' of type [com.alibaba.druid.support.spring.stat.DruidStatInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.418 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'druidStatAdvisor' of type [org.springframework.aop.support.DefaultPointcutAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.475 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$a76d5894] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.606 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$401b20ce] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.614 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'objectPostProcessor' of type [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.616 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@1afd72ef' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.620 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$64efc380] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:57.628 INFO 5808 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-06-27 22:13:58.013 INFO 5808 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 80 (http)
2020-06-27 22:13:58.034 INFO 5808 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-06-27 22:13:58.034 INFO 5808 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.21]
2020-06-27 22:13:58.041 INFO 5808 --- [ main] o.a.catalina.core.AprLifecycleListener : Loaded APR based Apache Tomcat Native library [1.2.24] using APR version [1.7.0].
2020-06-27 22:13:58.041 INFO 5808 --- [ main] o.a.catalina.core.AprLifecycleListener : APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2020-06-27 22:13:58.041 INFO 5808 --- [ main] o.a.catalina.core.AprLifecycleListener : APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
2020-06-27 22:13:58.044 INFO 5808 --- [ main] o.a.catalina.core.AprLifecycleListener : OpenSSL successfully initialized [OpenSSL 1.1.1g 21 Apr 2020]
2020-06-27 22:13:58.146 INFO 5808 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-06-27 22:13:58.146 INFO 5808 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2280 ms
2020-06-27 22:13:58.363 WARN 5808 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfig': Unsatisfied dependency expressed through field 'unauthorizedHandler'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'cn.stylefeng.guns.sys.core.auth.entrypoint.JwtAuthenticationEntryPoint' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {[@org](https://bbs.stylefeng.cn/user/org).springframework.beans.factory.annotation.Autowired(required=true)}
2020-06-27 22:13:58.366 INFO 5808 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2020-06-27 22:13:58.418 INFO 5808 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-06-27 22:13:58.593 ERROR 5808 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :

APPLICATION FAILED TO START

Description:

Field unauthorizedHandler in cn.stylefeng.g.config.security.WebSecurityConfig required a bean of type 'cn.stylefeng.guns.sys.core.auth.entrypoint.JwtAuthenticationEntryPoint' that could not be found.

The injection point has the following annotations:
- [@org](https://bbs.stylefeng.cn/user/org).springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'cn.stylefeng.guns.sys.core.auth.entrypoint.JwtAuthenticationEntryPoint' in your configuration.

共 1 条评论
5251462 [楼主] 3个月前
0