本文主要是介绍Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package问题解决,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package
An error occurred at line: 11 in the jsp file: /jsp/controller.jsp
ActionEnter cannot be resolved to a type
8:
9: String rootPath = application.getRealPath( "/" );
10:
11: out.write( new ActionEnter( request, rootPath ).exec() );
12:
13: %>
解决方法:
1、把 ueditor\jsp目录中的jar包复制到\WEB-INF\lib中
2、把\WEB-INF\lib中的jar包导入到项目中
3、clean整个项目
4、重新启动项目
相关问题解决,可以参考:
https://blog.csdn.net/testcs_dn/article/details/39643119
这篇关于Only a type can be imported. com.baidu.ueditor.ActionEnter resolves to a package问题解决的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!