-
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
https://blog.csdn.net/lslk9898/article/details/73836745 -
ECLIPSE修改xml配置文件TOMCAT不生效的解决
删除build目录下的classes文件夹,然后重新编译项目从而使对配置文件的更改生效。
-
mybatis逆向生成的usermapper.xml出现问题
java.lang.IllegalArgumentException: Result Maps collection already contains value for shopping.mapper.UserMapper.BaseResultMap原因:逆向工程时出现问题
使用mybatis generator插件生产代码时,如果数据库是MySQL 8.x 自定义的表与系统表有同名时,会自动生产两张表的对应代码,而且会有很多冲突和错误,此时设置table的schema也没有效果,需要在连接节点里面添加 属性:
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/shopping?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai" userId="root" password="123456"> <property name="nullCatalogMeansCurrent" value="true" /> </jdbcConnection>
参见mybatis generator issue http://www.mybatis.org/generator/usage/mysql.html
Maven SSM项目初体验
猜你喜欢
转载自blog.csdn.net/czc103/article/details/85718931
今日推荐
周排行