首页 技术 正文
技术 2022年11月16日
0 收藏 992 点赞 2,437 浏览 1807 个字

1.SpringBoot 升级到 2.1.5.RELEASE 以上后 pom.xml 报 Unknown错误

2.maven项目pom.xml第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apach

3.Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could...

1.SpringBoot 升级到 2.1.5.RELEASE 以上后 pom.xml 报 Unknown错误

在Eclipse中使用STS快速创建,或者根据官方网站生成项目的时候,相信有不少码友和我一样,在创建完之后pom.xml文件一直报Unknown错误,

主要原因是2.1.5.RELEASE 升级到了。3.1.2 造成的问题,有些IDE插件不兼容的问题造成的。

解决这个问题只需要,在pom.xml 文件中的 properties 加入maven jar 插件的版本号,如下所示:

<properties>
<java.version>1.8</java.version>
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
</properties>

springboot问题排解

这样我们就可以愉快的用spring boot的新版本了。

2.maven项目pom.xml第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apach

详见:https://www.cnblogs.com/youziji/p/12252451.html

网上查到的资料有

1、把parent version改成2.1.4.RELEASE

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath></relativePath>
</parent>改成<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<relativePath></relativePath>
</parent>

2、网上最多的解决方案,有些评论说可以,但是我的不行,有可能是我电脑网络问题  Help–>Install New SoftWare——>Add

name:MavenArchiver

location:https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST

http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/

3、最后用的是如下这种办法

springboot问题排解

 3.Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could

springboot问题排解

在项目的

DemoApplication中加入exclude = {DataSourceAutoConfiguration.class}
如下
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class DemoApplication { public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,027
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,518
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,365
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,146
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,780
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,857