maven 项目,编译打包无问题,启动项目突然停止

启动停止报错:

[] - 2022-02-09 10:18:23.290 - WARN  [             main] - AbstractApplicationContext.refresh():558:Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'objectMapperConfigurer' defined in springfox.documentation.spring.web.SpringfoxWebMvcConfiguration: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webConfig' defined in file [D:\workspace_manage\manage-backend\target\classes\com\kayak\common\config\WebConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenMethodArgumentResolver': Unsatisfied dependency expressed through field 'jwtTokenProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtTokenProvider' defined in file [D:\workspace_manage\manage-backend\target\classes\com\kayak\common\security\jwt\JwtTokenProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userProfile' defined in file [D:\workspace_manage\manage-backend\target\classes\com\kayak\common\security\springsecurity\UserProfile.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'manageSysUserImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'manageSysUserMapper' defined in file [D:\workspace_manage\manage-backend\target\classes\com\kayak\modules\user\mapper\ManageSysUserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\workspace_manage\manage-backend\target\classes\mapping\modules\cardbin\CardBinMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [D:\workspace_manage\manage-backend\target\classes\mapping\modules\cardbin\CardBinMapper.xml]'. Cause: org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping #{}.  Check syntax #{property|(expression), var1=value1, var2=value2, ...} 
[] - 2022-02-09 10:18:23.290 - INFO  [             main] - DynamicRoutingDataSource.destroy():201:dynamic-datasource start closing ....
[] - 2022-02-09 10:18:23.298 - INFO  [             main] - DruidDataSource.close():1965:{dataSource-2} closing ...
[] - 2022-02-09 10:18:23.314 - INFO  [             main] - DruidDataSource.close():2037:{dataSource-2} closed
[] - 2022-02-09 10:18:23.314 - INFO  [             main] - DruidDataSource.close():1965:{dataSource-1} closing ...
[] - 2022-02-09 10:18:23.324 - INFO  [             main] - DruidDataSource.close():2037:{dataSource-1} closed
[] - 2022-02-09 10:18:23.324 - INFO  [             main] - DynamicRoutingDataSource.destroy():221:dynamic-datasource all closed success,bye
[] - 2022-02-09 10:18:23.337 - INFO  [             main] - ConditionEvaluationReportLoggingListener.logMessage():136:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
Disconnected from the target VM, address: '127.0.0.1:56269',transport: 'socket'

Process finished with exit code 1

报错排查分析:

   网上查有的说是端口号占用有的说是idea、maven版本不一致,但都不是问题所在    

   问题具体原因在warn警告信息里: xml中SQL语句编写错误

注意:

   以后不要只盯着报错,在报错不明确的情况下,对warn警告提示也要有所关注

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值