SpringBoot Idea 启动报错 Process finished with exit code 1

问题描述:没有其他任何错误日志,只有Process finished with exit code 1

问题原因:Maven POM.xml问题造成

由于是properties是我直接从其他项目中拷贝过来没有做处理,造成依赖混乱,导致项目启动失败

<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version>

   ~~<commons-codec.version>1.10</commons-codec.version>~~   ~~<jjwt.version>0.7.0</jjwt.version>~~   ~~<codehaus-jackson.version>1.9.13</codehaus-jackson.version>~~   ~~<mybatis-starter-version>1.2.0</mybatis-starter-version>~~   ~~<mybatis.plus.version>2.0.7</mybatis.plus.version>~~   ~~<druid.version>1.0.29</druid.version>~~   ~~<mapper.version>3.4.0</mapper.version>~~   ~~<springframework.version>4.3.8.RELEASE</springframework.version>~~   ~~<paascloud.security.version>1.0</paascloud.security.version>~~   ~~<saascloud.version>1.0-SNAPSHOT</saascloud.version>~~   ~~<elastic-job.version>2.1.5</elastic-job.version>~~   ~~<curator.version>2.10.0</curator.version>~~   ~~<mysql.version>5.1.39</mysql.version>~~   ~~<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>~~   ~~<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>~~   <maven-source-plugin.version>3.0.1</maven-source-plugin.version>~~   <guava.version>17.0</guava.version>   ~~<~~boot.admin.version>1.5.7</boot.admin.version>~~   ~~<httpclientutil.version>1.0</httpclientutil.version>~~   ~~<feign.form.spring.version>3.0.3</feign.form.spring.version>~~   ~~~~<spring.version>4.3.11.RELEASE</spring.version>~~~~   ~~<fastjson.version>1.2.29</fastjson.version>~~   ~~<modelmapper.version>1.1.2</modelmapper.version>~~   <rocketmq.version>4.1.0-incubating</rocketmq.version>~~</properties>
<dependency>   <groupId>com.google.guava</groupId>   <artifactId>guava</artifactId>   <version>${guava.version}</version></dependency><!-- https://mvnrepository.com/artifact/com.alibaba/fastjson --><dependency>   <groupId>com.alibaba</groupId>   <artifactId>fastjson</artifactId>   <version>1.2.58</version></dependency>

properties 中定义的version和dependency中的version冲突造成

原文地址:https://www.cnblogs.com/siashan/p/10876937.html

时间: 2024-11-29 06:17:08

SpringBoot Idea 启动报错 Process finished with exit code 1的相关文章

SpringBoot项目启动报错:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

.   ____          _            __ _ _ /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/  ___)| |_)| | | | | || (_| |  ) ) ) )  '  |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Sprin

springboot项目启动报错 url&#39; attribute is not specified and no embedded datasource could be configured

报错相关信息: 2019-07-22 17:12:48.971 ERROR 8312 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not

第一个springboot项目启动报错Failed to configure a DataSource: &#39;url&#39; attribute is not specified and no embedded datasource could be configured.

报错内容具体如下 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a

运行nodejs项目报Process finished with exit code 1 错误

在项目中,明明在别人的机子上项目可以运行,但是复制到自己的电脑就无法就无法启动.报Process finished with exit code 1错误,也没提示错误地方.自己倒腾了很久总结了几个解决办法: 1.没有任何错误提示 这是因为你自己本机没有部署插件 在项目的根目录下输入 : npm install 2.提示:Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 没有启动Redis, 去安装Red

pycharm Process finished with exit code (0xC0000005)

pycharm  Process finished with exit code  (0xC0000005)解决办法 上次报过这个错误,是在安装浏览器时发现的,报过同样的错误.按当时的方法,以为切地解决了,没成想又继续报错,不解决始终用的不爽!虽然可以用pycharm中编辑代码+cmd命令行下启动服务,但是始终不是个好办法,继续整. 找到这地方,点击红色框出现编辑界面: 根据箭头指示操作,并加上途中内容: “=c:     c\”” 问题解决了,不知道后面会不会继续报这个错误! 这个好像是环境变

cordova Process finished with exit code -1

安装完cordova之后,创建一个测试项目后,运行报Process finished with exit code -1,经过查找原因,是因为gradle没有安装,在http://www.androiddevtools.cn/#gradle 这里下载gradle,下载解压完成后,查看getting-started 这个文件安装gradle,安装完成后,在命令行中运行 cordova build android,会自动下载需要的插件,下载过程中asm-tree-4.0.jar需要设置代理才能安装成

运行代码后出现Process finished with exit code 0是为什么?

Process finished with exit code 0 意味着你的程序正常执行完毕并退出. 可以科普一下exit code,在大部分编程语言中都适用: exit code 0 表示程序执行成功,正常退出 exit code 1 表示程序执行执行过程中遇到了某些问题或者错误,非正常退出 原文地址:https://www.cnblogs.com/lxwphp/p/9119780.html

spring-boot:run启动报错

Intellij Idea中的spring boot项目,使用main方法运行可以启动,但是使用mvn spring-boot:run启动总是报错 大概意思就是找不到类:org/apache/maven/shared/artifact/filter/collection/ArtifactsFilter 原来是没有在仓库中找到对应的插件,指定一个找得到的版本号即可解决 <build> <plugins> <plugin> <groupId>org.spring

springboot 工程启动报错之Consider defining a bean of type ‘XXX’ in your configuration.

一.前言: 使用springboot自动注入的方式搭建好了工程,结果启动的时候报错了!!!,错误如下图: Description: Field userEntityMapper in com.xxx.xxx.service.UserService required a bean of type 'com.xxx.xxx.dao.UserEntityMapper' that could not be found. Action: Consider defining a bean of type '