在idea中新建完springboot项目的时候遇到问题(右键没有class选择;控制台报错:Could not transfer artifact org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.60 from/to central ....)
2022-03-26 11:46
1026 查看
一、在idea中新建完springboot项目的时候遇到问题
问题1:右键没有class选择
解决:之所以会如此,是因为项目还没完成创建完成,解决:只需等等即可,等到完全创建完成即可
问题2(报tomcat相关的错误):Could not transfer artifact org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.60 from/to central ....
解决:因为创建的是maven项目,而在idea中没有配置maven,解决只需在IDEA中全局默认配置中去配置maven
- 具体步骤: File -》 New Projects Settings -》 Settings for New Projects -》搜索框搜Maven -》配置maven的安装路径、配置文件路径、本地仓库路径
问题2-2(报maven相关的错误):Could not transfer artifact org.apache.maven.plugins...
解决方式:和上面的报错原因一样,都是因为创建的是maven项目,而在idea中没有配置maven,解决只需在IDEA中全局默认配置中去配置maven
- 所有解决手段是一样的,在idea中共添加上maven的配置
相关文章推荐
- sts中新建项目时出现Original error: Could not transfer artifact org.hamcrest:hamcrest-core:jar:
- springboot创建项目问题:Failure to transfer org.codehaus.plexus:plexus-archiver:jar:2.0.1 from
- Maven 工程错误Could not transfer artifact org.codehaus.plexus:plexus-io:pom:2.0.1 from/to central
- idea spring boot打包jar 遇到的一个问题 spring boot dubbo Could not resolve dependencies for project
- IDEA下载maven依赖报错:Could not transfer artifact org.springframework.boot:spring-boot-maven-plugi
- 启动tomcat的时候报错信息如下:. Could not find the main class: org.apache.catalina.startup.Bootstrap. Program wi
- Could not transfer artifact org.springframework:spring-tx:jar:3.2.3.RELEASE
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.0.RELEAS错误解决
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.4.RELEASE
- Idea中tomcat(ssm整合)启动项目:ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
- Spring boot+MyBatis连接Mysql时遇到Could not create connection to database server的问题
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:*.*.*.RELEASE
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.9.RELEASE fr
- 【解决问题】Springboot项目Maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- 使用idea启动spring boot项目时遇到The Tomcat connector configured to listen on port 8080 failed to start
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent
- springmvc+mybatis+maven项目集成的时候遇到一个问题,项目搭起来以后,http请求怎么都进不到controller中,页面直接返回404错误,控制台没有报任何错误,请大神帮我看看
- 遇到问题---maven---启动项目出现出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoa
- maven项目下载报错:Failure to transfer org.apache.maven:maven-archiver:jar:x.x from https://repo.maven.apache.org/maven...
- Maven新建webapp项目报错Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:R