Tips①:
报错:
The content of element type “configuration” must match "(properties?,setting
是你的标签顺序不正确
详情参考介绍
Tips②: Could not load the Tomcat server configuration at \Servers\Tomcat v9.0 Serve
无法在\servers\tomcat v9.0服务器上加载tomcat服务器配置
是因为在eclipse运行用server运行JSP出现了该报错,可能是之前tomcat运行时强制关闭了eclipse所致的
解决方案:在server视图下删掉之前建的服务器再重新建一个
步骤:点击工具栏windows—>preference----->Server----->Runtime environments,查看右侧是否有tomcat
Tips③:Tomcat报错: Server Tomcat v9.0 Server at localhost was unable to start within 45 seconds. 运行超时
打开Windown–>Show View–>Servers
再次重新启动Tomcat即可
Tips③:在Navicat中写SQL语句发生错误信息:
报错信息:
mysql1062错误: Duplicate entry ‘…’ for key 'PRIMARY
在执行插入操作insert前,可以先执行一遍该主键值的查找操作select
主键是惟一的
我写的:
INSERT INTO bbs_threads(threadid,forumid,username,subject,content,builddate,editdate) VALUES ('1','1','admin','中影星美','周五看电影',now(),now())
表中有主键
改成2或没有存在的主键就进来了
SpringBoot的DAO层传参不写@Param(“cUsername”)会不执行controller 中的方法
Tip④:
Eclipse启动时发生An internal error occurred during: “Initializing Java Tooling”.错误的解决方法
删除当前工作目录下的
D:\eclipse-JavaEE\eclipse-web-64\workspace.metadata.plugins\org.eclipse.core.resources.projects
然后重新启动Eclipse