1、maven 发布war :No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
解决方案:
在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.7, 在右侧选择jdk1.7
然后在maven菜单中使用 “update project ...”.
2、解决Error(1133): Can’t find any matching row in the user table
原因:数据库没有设置远程登录 cmd进入mysql 输入grant all PRIVILEGES on mytest.* to root@'%' identified by 'zxc123456';FLUSH PRIVILEGES;