Springboot、maven报错大全

org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType

原因:缺少 spring-boot-starter-jdbc

// 导入依赖
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

这里只说了缺少什么,但为什么发生?之前引用过mybaits,因为它引用了jdbc所以项目不报错,偶然间删除mybaits之后就报这个错了!

Element 'dependency' cannot have character [children], because the type's content type is element-on

报错原因:因为是直接从网上拷贝过来粘贴在pom.xml中的可能格式会有冲突

把前面的空格都删了,重新排版就行

如下

Parameter 0 of method modifyRequestBodyGatewayFilterFactory

https://blog.csdn.net/jamesleel/article/details/84838057

maven warnning 'build.plugins.plugin.version' is missing

https://www.cnblogs.com/softidea/p/11466376.html

一般都是maven pluging 没有设置版本...

posted @ 2022-02-27 03:23  方东信  阅读(220)  评论(0编辑  收藏  举报