- 博客(5)
- 收藏
- 关注
转载 SpringMVC使用ModelAndView的相对路径和绝对路径的问题
例如:abc/a/a.jsp,想要跳转到根目录的b.jsp 使用 ModelAndView 跳转, 若引用:org.springframework.web.portlet.ModelAndView 这个会在相对路径下跳转,会变成 abc/a/b.jsp 若引用:org.springframework.web.servlet.ModelAndView 这个会在绝对路径...
2019-02-14 00:25:00 714
转载 【转载】MySQL 8.0 Keywords and Reserved Words
原文地址:https://dev.mysql.com/doc/refman/8.0/en/keywords.html MySQL 8.0 Keywords and Reserved Words The following list shows the keywords and reserved words in MySQL 8.0, along with...
2019-01-30 01:48:00 144
转载 【转载】Mapped Statements collection does not contain value for的解决方法
原文链接:https://blog.csdn.net/wang623145708/article/details/27213685 错误原因有几种:1、mapper.xml中没有加入namespace2、mapper.xml中的方法和接口mapper的方法不对应3、mapper.xml没有加入到mybatis-config.xml中(即总的配置文件),例外:配置了mapper文件的包路...
2019-01-26 19:10:00 128
转载 MySQL字段的属性应该尽量设置为NOT NULL
数据库建表时,对于一些可填可不填的字段,我们应该尽量把它设置为 NOT NULL。这种做法即可以提高性能,又可以在很大程度上避免空指针类的问题,好处颇多。 1.节省空间 NULL 列需要更多的存储空间:需要一个额外字节作为判断是否为 NULL 的标志位。 2.空指针 查询时,可以在一定程度上减少 NullPointerException。 3.减少因为空值而出现的计算错误 如...
2019-01-19 00:45:00 218
转载 【转载】关于mysql-connector-java(JDBC驱动)的一些坑
原文地址:https://www.cnblogs.com/skyshalo/p/7251378.html 最近在写一个项目的时候,用了maven仓库里面较新的mysql的JDBC驱动,版本是6.0.6,Mybatis的全局配置是这么写的: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE configuratio...
2019-01-15 16:21:00 121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人