上一页 1 2 3 4 5 6 7 8 9 ··· 56 下一页
摘要: 转载自:https://blog.csdn.net/ITBigGod/article/details/82970621 1、Dao层的抽象方法中的参数一般情况下默认的是一个参数或者一个对象; 如果你是这种条件。 例如: public interface StudentDao int selectBy 阅读全文
posted @ 2020-06-20 13:37 青衫客36 阅读(2503) 评论(0) 推荐(1) 编辑
摘要: 如果定义的事务管理器名称为transactionManager,那么就可以直接使用<tx:annotation-driven/>。如下: <!-- 配置事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.da 阅读全文
posted @ 2020-06-20 07:45 青衫客36 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 我当时忘了加这两个,加上就好了 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2020-06-20 07:42 青衫客36 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: 解决方案: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
posted @ 2020-06-20 07:28 青衫客36 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: 在整合MyBatis时,将***Mapper.xml文件放在了resources下的mappers文件夹下,可是程序报错说“mappers/*.xml”这个路径不存在(现在也没搞明白为什么) 又将***Mapper.xml文件与***Mapper.java放在一起,如下图所示。 然后在Spring. 阅读全文
posted @ 2020-06-20 07:23 青衫客36 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: 正常的话到这就结束了 但如果中间出现了这个 可以再重新起个名字 阅读全文
posted @ 2020-06-12 14:50 青衫客36 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 本文参考链接:https://www.cnblogs.com/SH170706/p/11015049.html 从Github上下载github上的整个项目,可以用下面指令: git clone https://github.com/XXX/xxxxx.git 其中:XXX是用户在Github上的用 阅读全文
posted @ 2020-06-06 18:12 青衫客36 阅读(1702) 评论(0) 推荐(0) 编辑
摘要: Your groupId is wrong. Try: <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.2</version> <scope>provided</scop 阅读全文
posted @ 2020-06-04 09:25 青衫客36 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 数据库中明明有订单编号,却显示null? 找了很长时间才了解到,在数据库中也要将属性名设置的和类中一样,这样在使用queryrunner的qr.query(sql, new BeanListHandler<>(Product.class), params...)方法时,才不会出现无法对应而产生nul 阅读全文
posted @ 2020-06-02 14:17 青衫客36 阅读(4211) 评论(1) 推荐(0) 编辑
摘要: 导出war包主要区别是我们不用它默认的方式,而是选择新的打包方式Artifacts 选项中有web application exploded,这个是以文件夹形式(War Exploded)发布项目,选择这个,发布项目时就会自动生成文件夹在指定的output directory,如果选web appl 阅读全文
posted @ 2020-06-01 07:45 青衫客36 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 56 下一页