idea 导入 spring boot 项目,build失败
Clearing build system data...
Executing pre-compile tasks...
Loading Ant Configuration...
Running Ant Tasks...
Cleaning output directories...
Running 'before' tasks
Checking sources
Copying resources... [ahh]
Parsing java... [ahh]
java: Errors occurred while compiling module 'ahh'
javac 11 was used to compile java sources
Finished, saving caches...
Compilation failed: errors: 3; warnings: 0
Executing post-compile tasks...
Loading Ant Configuration...
Running Ant Tasks...
Synchronizing output directories...
2020/12/17, 9:43 PM - Build completed with 3 errors and 0 warnings in 5 s 706 ms
/Users/lidashuang/Projects/ahh/src/main/java/com/weavi/ahh/controller/UserController.java:4:52
java: package com.sun.org.apache.xpath.internal.operations does not exist
/Users/lidashuang/Projects/ahh/src/main/java/com/weavi/ahh/controller/UserController.java:131:19
java: cannot find symbol
symbol: class Bool
location: class com.weavi.ahh.controller.UserController
/Users/lidashuang/Projects/ahh/src/main/java/com/weavi/ahh/controller/UserController.java:4:52
java: package com.sun.org.apache.xpath.internal.operations does not exist
/Users/lidashuang/Projects/ahh/src/main/java/com/weavi/ahh/controller/UserController.java:131:19
java: cannot find symbol
symbol: class Bool
location: class com.weavi.ahh.controller.UserController
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看上去是java sdk 版本的问题,你要导入的包名只存在于JDK8,高版本的已移除,
把项目的 SDK 从高版本降至 1.8. 对 IntelliJ, 从 File --> Project Structure 里设置。
解决