zoukankan      html  css  js  c++  java
  • 转载:SpringBoot Process finished with exit code 0

    原文地址:https://www.jianshu.com/p/3628e1002a55

    报错:
    Process finished with exit code 0 退出
    Unregistering JMX-exposed beans on shutdown

    2018-04-04 23:50:16.860 INFO 1953 --- [ Thread-16] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans

    2018-04-04 23:50:16.861 INFO 1953 --- [ Thread-16] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'

    2018-04-04 23:50:16.862 INFO 1953 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...

    2018-04-04 23:50:16.867 INFO 1953 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.

    Process finished with exit code 0

    猜测原因:(因为试了好几次了)

    第一:

    项目中由于pom.xml 的原因

    没有

    <dependency>
    
       <groupId>org.springframework.boot</groupId>
    
       <artifactId>spring-boot-starter-web</artifactId>
    
    </dependency>

    第二:【这条测试没效果,并且我删除了这条依赖】

    项目中可能由于Maven仓库的问题

    我们加入tomcat的依赖

    <dependency>
    
      <groupId>org.springframework.boot</groupId>
    
      <artifactId>spring-boot-starter-tomcat</artifactId>
    
      <scope>provided</scope>
    
    </dependency>

    第三:(运行成功的)

    清理Maven的org 下 apache 文件夹,让Maven重新下载jar包

    或者运行Maven命令,清理jar包

    dependency:purge-local-repository

     点击弹出

     清空后在加载,此时启动项目没有报错,完成

    看到maven有报错,是idea没有反应过来,重启idea即可解决,此时报错不存在happy

  • 相关阅读:
    【转】Android 6.0 Marsmallow BLE : Connection Parameters
    过滤掉字符串中重复的字符
    从第一个汉字开始分割字符串
    根据年月生成日历函数
    计算两个日期之间的工作日
    根据日期返回星座
    检查给定串是否存在于由区间及点集的结合内
    将整型数字转换为大写汉字
    向左填充指定字符串
    人民币小写金额转大写
  • 原文地址:https://www.cnblogs.com/ljangle/p/12037009.html
Copyright © 2011-2022 走看看