SpringBoot打包之后有时候无法启动,重新打包有时候自动又好了!


st-10-236-157-215 cmcc]$ ps -ef|grep CMCC 
nxjf_cx   50731  50462  0 08:37 pts/0    00:00:00 grep --color=auto CMCC
nxjf_cx  121748      1  0 Apr16 ?        00:03:00 java -Xms1024m -Xmx1024m -jar CMCC_CX.jar
[nxjf_cx@host-10-236-157-215 cmcc]$ kill -9 121748
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ ps -ef|grep CMCC 
nxjf_cx   50822  50462  0 08:37 pts/0    00:00:00 grep --color=auto CMCC
[nxjf_cx@host-10-236-157-215 cmcc]$ nohup java -Xms1024m -Xmx1024m -jar CMCC_CX.jar &
[1] 50840
nohup: ignoring input and appending output to ‘nohup.out’
tail -f nohup.out
[nxjf_cx@host-10-236-157-215 cmcc]$ tail -f nohup.out
08:37:25.008 [RuoyiScheduler_Worker-8] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - ==>  Preparing: insert into sys_job_log( job_name, job_group, invoke_target, job_message, status, create_time )values( ?, ?, ?, ?, ?, sysdate() ) 
08:37:25.009 [RuoyiScheduler_Worker-8] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - ==> Parameters: 视频彩铃彩信日报(String), mms(String), faw(String), 视频彩铃彩信日报 总共耗时:1毫秒(String), 0(String)
08:37:25.011 [RuoyiScheduler_Worker-8] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - <==    Updates: 1
执行有参方法:activityTestISMG
08:37:35.020 [RuoyiScheduler_Worker-9] INFO  CmppSender - [start,46] - 获取到的head为:-2147483640
08:37:35.020 [RuoyiScheduler_Worker-9] INFO  CmppSender - [start,57] - 短信网关与短信网关进行连接检查 序列号:164
###: 链路链接成功!!!
08:37:35.021 [RuoyiScheduler_Worker-9] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - ==>  Preparing: insert into sys_job_log( job_name, job_group, invoke_target, job_message, status, create_time )values( ?, ?, ?, ?, ?, sysdate() ) 
08:37:35.021 [RuoyiScheduler_Worker-9] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - ==> Parameters: 短信链路心跳测试(勿删!!!)(String), DEFAULT(String), ryTask.ryParams('activityTestISMG')(String), 短信链路心跳测试(勿删!!!) 总共耗时:14毫秒(String), 0(String)
08:37:35.023 [RuoyiScheduler_Worker-9] DEBUG c.c.p.m.j.m.J.insertJobLog - [debug,159] - <==    Updates: 1

//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//                  经分彩信管理系统开始启动......                   //

********************************************************************
经分彩信管理系统框架技术选型:
1.核心框架:Spring Boot 2
2.安全框架:Apache Shiro
3.模板引擎:Thymeleaf
4.持久层框架:MyBatis
5.定时任务:Quartz
6.数据库连接池:Druid
7.工具类:Fastjson
8.前台框架:Bootstrap
-------------------------------------------------------------------
Application Version: 20.4.17
Spring Boot Version: 2.1.1.RELEASE
Environment: prod
********************************************************************
08:37:58.567 [main] INFO  c.c.CMCC_CXApplication - [logStarting,50] - Starting CMCC_CXApplication v2.1.0 on host-10-236-157-215 with PID 50840 (/data/app/cmcc/CMCC_CX.jar started by nxjf_cx in /data/app/cmcc)
08:37:58.571 [main] DEBUG c.c.CMCC_CXApplication - [logStarting,53] - Running with Spring Boot v2.1.1.RELEASE, Spring v5.1.3.RELEASE
08:37:58.572 [main] INFO  c.c.CMCC_CXApplication - [logStartupProfileInfo,679] - The following profiles are active: prod
08:37:59.694 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsConfCssMapper' and 'com.cmcc.project.mms.mapper.MmsConfCssMapper' mapperInterface. Bean already defined with the same name!
08:37:59.694 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'jobMapper' and 'com.cmcc.project.monitor.job.mapper.JobMapper' mapperInterface. Bean already defined with the same name!
08:37:59.694 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'menuMapper' and 'com.cmcc.project.system.menu.mapper.MenuMapper' mapperInterface. Bean already defined with the same name!
08:37:59.695 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'postMapper' and 'com.cmcc.project.system.post.mapper.PostMapper' mapperInterface. Bean already defined with the same name!
08:37:59.695 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleMenuMapper' and 'com.cmcc.project.system.role.mapper.RoleMenuMapper' mapperInterface. Bean already defined with the same name!
08:37:59.695 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userRoleMapper' and 'com.cmcc.project.system.user.mapper.UserRoleMapper' mapperInterface. Bean already defined with the same name!
08:37:59.695 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'genTableMapper' and 'com.cmcc.project.tool.gen.mapper.GenTableMapper' mapperInterface. Bean already defined with the same name!
08:37:59.695 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsCssMapper' and 'com.cmcc.project.mms.mapper.MmsCssMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userOnlineMapper' and 'com.cmcc.project.monitor.online.mapper.UserOnlineMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'deptMapper' and 'com.cmcc.project.system.dept.mapper.DeptMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'dictTypeMapper' and 'com.cmcc.project.system.dict.mapper.DictTypeMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleMapper' and 'com.cmcc.project.system.role.mapper.RoleMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobMainMapper' and 'com.cmcc.project.mms.mapper.MmsJobMainMapper' mapperInterface. Bean already defined with the same name!
08:37:59.696 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobUserMapper' and 'com.cmcc.project.mms.mapper.MmsJobUserMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'configMapper' and 'com.cmcc.project.system.config.mapper.ConfigMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'noticeMapper' and 'com.cmcc.project.system.notice.mapper.NoticeMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userMapper' and 'com.cmcc.project.system.user.mapper.UserMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'genTableColumnMapper' and 'com.cmcc.project.tool.gen.mapper.GenTableColumnMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobConfMapper' and 'com.cmcc.project.mms.mapper.MmsJobConfMapper' mapperInterface. Bean already defined with the same name!
08:37:59.697 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'jobLogMapper' and 'com.cmcc.project.monitor.job.mapper.JobLogMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'logininforMapper' and 'com.cmcc.project.monitor.logininfor.mapper.LogininforMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'operLogMapper' and 'com.cmcc.project.monitor.operlog.mapper.OperLogMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'dictDataMapper' and 'com.cmcc.project.system.dict.mapper.DictDataMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleDeptMapper' and 'com.cmcc.project.system.role.mapper.RoleDeptMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userPostMapper' and 'com.cmcc.project.system.user.mapper.UserPostMapper' mapperInterface. Bean already defined with the same name!
08:37:59.698 [main] WARN  o.m.s.m.ClassPathMapperScanner - [doScan,166] - No MyBatis mapper was found in '[com.cmcc.project.**.mapper]' package. Please check your configuration.
08:38:00.783 [main] WARN  n.s.e.s.d.DiskStorageFactory - [<init>,172] - The index for data file /tmp/shiro-active%0053ession%0043ache.data is out of date, probably due to an unclean shutdown. Deleting index file /tmp/shiro-active%0053ession%0043ache.index
08:38:00.807 [main] INFO  o.a.s.c.e.EhCacheManager - [getCache,158] - Cache with name 'com.cmcc.framework.shiro.realm.UserRealm.authorizationCache' does not yet exist.  Creating now.
08:38:00.808 [main] INFO  o.a.s.c.e.EhCacheManager - [getCache,165] - Added EhCache named [com.cmcc.framework.shiro.realm.UserRealm.authorizationCache]
08:38:00.828 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,554] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationAttributeSourceAdvisor' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'authorizationAttributeSourceAdvisor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroFilterFactoryBean' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'shiroFilterFactoryBean' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityManager' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'securityManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRealm': Unsatisfied dependency expressed through field 'menuService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'menuServiceImpl': Unsatisfied dependency expressed through field 'menuMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuMapper' defined in URL [jar:file:/data/app/cmcc/CMCC_CX.jar!/BOOT-INF/classes!/com/cmcc/project/system/menu/mapper/MenuMapper.class]: Cannot resolve reference to bean 'sqlSessionTemplatePrimary' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSessionTemplatePrimary' available
08:38:00.886 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,42] - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Field menuMapper in com.cmcc.project.system.menu.service.MenuServiceImpl required a bean named 'sqlSessionTemplatePrimary' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Qualifier(value=securityManager)


Action:

Consider defining a bean named 'sqlSessionTemplatePrimary' in your configuration.

^C
[nxjf_cx@host-10-236-157-215 cmcc]$ ps -ef|grep CMCC 
nxjf_cx   50840  50462  8 08:37 pts/0    00:00:16 java -Xms1024m -Xmx1024m -jar CMCC_CX.jar
nxjf_cx   51104  50462  0 08:40 pts/0    00:00:00 grep --color=auto CMCC
[nxjf_cx@host-10-236-157-215 cmcc]$ kill -9 50840
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[1]+  Killed                  nohup java -Xms1024m -Xmx1024m -jar CMCC_CX.jar
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ ^C
[nxjf_cx@host-10-236-157-215 cmcc]$ nohup java -Xms1024m -Xmx1024m -jar CMCC_CX.jar &
[1] 51370
nohup: ignoring input and appending output to ‘nohup.out’
tail -f nohup.out
[nxjf_cx@host-10-236-157-215 cmcc]$ tail -f nohup.out
Field menuMapper in com.cmcc.project.system.menu.service.MenuServiceImpl required a bean named 'sqlSessionTemplatePrimary' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Qualifier(value=securityManager)


Action:

Consider defining a bean named 'sqlSessionTemplatePrimary' in your configuration.


//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//                  经分彩信管理系统开始启动......                   //

********************************************************************
经分彩信管理系统框架技术选型:
1.核心框架:Spring Boot 2
2.安全框架:Apache Shiro
3.模板引擎:Thymeleaf
4.持久层框架:MyBatis
5.定时任务:Quartz
6.数据库连接池:Druid
7.工具类:Fastjson
8.前台框架:Bootstrap
-------------------------------------------------------------------
Application Version: 20.4.17
Spring Boot Version: 2.1.1.RELEASE
Environment: prod
********************************************************************
08:43:10.442 [main] INFO  c.c.CMCC_CXApplication - [logStarting,50] - Starting CMCC_CXApplication v2.1.0 on host-10-236-157-215 with PID 51370 (/data/app/cmcc/CMCC_CX.jar started by nxjf_cx in /data/app/cmcc)
08:43:10.446 [main] DEBUG c.c.CMCC_CXApplication - [logStarting,53] - Running with Spring Boot v2.1.1.RELEASE, Spring v5.1.3.RELEASE
08:43:10.448 [main] INFO  c.c.CMCC_CXApplication - [logStartupProfileInfo,679] - The following profiles are active: prod
08:43:11.576 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsConfCssMapper' and 'com.cmcc.project.mms.mapper.MmsConfCssMapper' mapperInterface. Bean already defined with the same name!
08:43:11.577 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'jobMapper' and 'com.cmcc.project.monitor.job.mapper.JobMapper' mapperInterface. Bean already defined with the same name!
08:43:11.577 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'menuMapper' and 'com.cmcc.project.system.menu.mapper.MenuMapper' mapperInterface. Bean already defined with the same name!
08:43:11.577 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'postMapper' and 'com.cmcc.project.system.post.mapper.PostMapper' mapperInterface. Bean already defined with the same name!
08:43:11.577 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleMenuMapper' and 'com.cmcc.project.system.role.mapper.RoleMenuMapper' mapperInterface. Bean already defined with the same name!
08:43:11.577 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userRoleMapper' and 'com.cmcc.project.system.user.mapper.UserRoleMapper' mapperInterface. Bean already defined with the same name!
08:43:11.578 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'genTableMapper' and 'com.cmcc.project.tool.gen.mapper.GenTableMapper' mapperInterface. Bean already defined with the same name!
08:43:11.578 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsCssMapper' and 'com.cmcc.project.mms.mapper.MmsCssMapper' mapperInterface. Bean already defined with the same name!
08:43:11.578 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userOnlineMapper' and 'com.cmcc.project.monitor.online.mapper.UserOnlineMapper' mapperInterface. Bean already defined with the same name!
08:43:11.578 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'deptMapper' and 'com.cmcc.project.system.dept.mapper.DeptMapper' mapperInterface. Bean already defined with the same name!
08:43:11.578 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'dictTypeMapper' and 'com.cmcc.project.system.dict.mapper.DictTypeMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleMapper' and 'com.cmcc.project.system.role.mapper.RoleMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobMainMapper' and 'com.cmcc.project.mms.mapper.MmsJobMainMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobUserMapper' and 'com.cmcc.project.mms.mapper.MmsJobUserMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'configMapper' and 'com.cmcc.project.system.config.mapper.ConfigMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'noticeMapper' and 'com.cmcc.project.system.notice.mapper.NoticeMapper' mapperInterface. Bean already defined with the same name!
08:43:11.579 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userMapper' and 'com.cmcc.project.system.user.mapper.UserMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'genTableColumnMapper' and 'com.cmcc.project.tool.gen.mapper.GenTableColumnMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'mmsJobConfMapper' and 'com.cmcc.project.mms.mapper.MmsJobConfMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'jobLogMapper' and 'com.cmcc.project.monitor.job.mapper.JobLogMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'logininforMapper' and 'com.cmcc.project.monitor.logininfor.mapper.LogininforMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'operLogMapper' and 'com.cmcc.project.monitor.operlog.mapper.OperLogMapper' mapperInterface. Bean already defined with the same name!
08:43:11.580 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'dictDataMapper' and 'com.cmcc.project.system.dict.mapper.DictDataMapper' mapperInterface. Bean already defined with the same name!
08:43:11.581 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'roleDeptMapper' and 'com.cmcc.project.system.role.mapper.RoleDeptMapper' mapperInterface. Bean already defined with the same name!
08:43:11.581 [main] WARN  o.m.s.m.ClassPathMapperScanner - [checkCandidate,239] - Skipping MapperFactoryBean with name 'userPostMapper' and 'com.cmcc.project.system.user.mapper.UserPostMapper' mapperInterface. Bean already defined with the same name!
08:43:11.581 [main] WARN  o.m.s.m.ClassPathMapperScanner - [doScan,166] - No MyBatis mapper was found in '[com.cmcc.project.**.mapper]' package. Please check your configuration.
08:43:12.659 [main] INFO  o.a.s.c.e.EhCacheManager - [getCache,158] - Cache with name 'com.cmcc.framework.shiro.realm.UserRealm.authorizationCache' does not yet exist.  Creating now.
08:43:12.660 [main] INFO  o.a.s.c.e.EhCacheManager - [getCache,165] - Added EhCache named [com.cmcc.framework.shiro.realm.UserRealm.authorizationCache]
08:43:12.680 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,554] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationAttributeSourceAdvisor' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'authorizationAttributeSourceAdvisor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroFilterFactoryBean' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'shiroFilterFactoryBean' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityManager' defined in class path resource [com/cmcc/framework/config/ShiroConfig.class]: Unsatisfied dependency expressed through method 'securityManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userRealm': Unsatisfied dependency expressed through field 'menuService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'menuServiceImpl': Unsatisfied dependency expressed through field 'menuMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuMapper' defined in URL [jar:file:/data/app/cmcc/CMCC_CX.jar!/BOOT-INF/classes!/com/cmcc/project/system/menu/mapper/MenuMapper.class]: Cannot resolve reference to bean 'sqlSessionTemplatePrimary' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSessionTemplatePrimary' available
08:43:12.742 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,42] - 

***************************
APPLICATION FAILED TO START
***************************

Description:

Field menuMapper in com.cmcc.project.system.menu.service.MenuServiceImpl required a bean named 'sqlSessionTemplatePrimary' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Qualifier(value=securityManager)


Action:

Consider defining a bean named 'sqlSessionTemplatePrimary' in your configuration.

^C
[nxjf_cx@host-10-236-157-215 cmcc]$ ps -ef|grep CMCC 
nxjf_cx   51370  50462 93 08:43 pts/0    00:00:15 java -Xms1024m -Xmx1024m -jar CMCC_CX.jar
nxjf_cx   51440  50462  0 08:43 pts/0    00:00:00 grep --color=auto CMCC
[nxjf_cx@host-10-236-157-215 cmcc]$ kill -9 51370
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[1]+  Killed                  nohup java -Xms1024m -Xmx1024m -jar CMCC_CX.jar
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
[nxjf_cx@host-10-236-157-215 cmcc]$ 
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值