【springboot】springboot 错误集合

目录

 

 

Maven Install报错:Perhaps you are running on a JRE rather than a JDK?

解决:The declared package does not match the expected package

PathVariable cannot be resolved to a type


java.sql.SQLException: Access denied for user 'root'@'localhost错误

1、密码未加引号:https://blog.csdn.net/xiaolinnulidushu/article/details/99065212

2、时区不一致:加红色的那一串

 url: jdbc:mysql://localhost:3306/demo_test?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&user=root&password=root&useSSL=true&serverTimezone=UTC

Maven Install报错:Perhaps you are running on a JRE rather than a JDK?

原文连接:https://www.jianshu.com/p/1ed0ec397575

所遇问题:

 

英文描述:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project busiservice: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

中文描述:此环境中未提供编译器,你可能使用jre运行而不是jdk。
引发原因:Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有
问题解决:

Window->Preferences

 

Java->Installed Rres->Add

 

Directory...

 

jdk->ok

 

Java->Installed JREs->Execution Environments->JavaSE-1.7->jdk1.x

 

Java->Installed JREs->Execution Environments->JavaSE-1.8->jdk1.x

 

maven->install(编译成功)



作者:_向太阳_
链接:https://www.jianshu.com/p/1ed0ec397575
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

 

解决:The declared package does not match the expected package

https://blog.csdn.net/weixin_34150224/article/details/91932452

 

PathVariable cannot be resolved to a type

点击PathVariable,在弹出的窗口,点击import PathVariable…… 插入对应的包即可

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值