04 2019 档案

摘要:1.使用top进行: 1.select top 页大小 * from 表名where id not in(select top 页大小*(查询第几页-1) id from 表名 order by id)order by id --全盘扫描,不太好 2.SELECT TOP 10 * FROM [TC 阅读全文
posted @ 2019-04-30 16:48 goodTOgreat 阅读(340) 评论(0) 推荐(0)
摘要:参考文献:https://www.cnblogs.com/IvesHe/p/6108933.html 我这里只总结其区别,具体的说明,请查看参考文献,讲的很详细。 A、list接口,实现子类有:arraylist,linklist,vector。 arraylist:数组结构、有序、值可重复、线程不 阅读全文
posted @ 2019-04-30 14:51 goodTOgreat 阅读(2990) 评论(1) 推荐(1)
摘要:首先,添加加载jsp文件的依赖包: 阅读全文
posted @ 2019-04-25 21:29 goodTOgreat 阅读(5104) 评论(0) 推荐(0)
摘要:1.首先加入相关的jar包,配置web.xml文件,如下: 2.配置springMVC.xml文件(springMVC.xml) 3.配置hibrenate配置文件,并导入相关的sql信息(hibernate.cfg.xml) 4.配置实体类的mapper文件(user.hbm.xml) 5.创建连 阅读全文
posted @ 2019-04-19 16:01 goodTOgreat 阅读(188) 评论(0) 推荐(0)
摘要:根据个人亲自测试,得出如下结果: 1.try,catch中有没有return,finnally都会执行,而且是先执行try,catch后,最后执行finnally语句; 2.如果finnally中有return,那么会直接返回,不会再去返回try或者catch中的返回值; 3.finally中对于返 阅读全文
posted @ 2019-04-19 15:22 goodTOgreat 阅读(636) 评论(0) 推荐(1)
摘要:Spring boot 集成Redis的步骤如下: 1.在pom.xml中配置相关的jar依赖; <!--加载spring boot redis包 --> 阅读全文
posted @ 2019-04-11 22:09 goodTOgreat 阅读(626) 评论(0) 推荐(0)
摘要:问题:The bean 'xxx' could not be injected as a 'com.github.service.xx' because it is a JDK dynamic proxy 先说说问题的来源吧,当前这个问题是我在springboot配置事务时出现的,本来我搭建了一个s 阅读全文
posted @ 2019-04-11 20:38 goodTOgreat 阅读(12618) 评论(3) 推荐(4)
摘要:static和templates部分参考博客:https://blog.csdn.net/wangb_java/article/details/71775637 热部署参考博客:https://www.cnblogs.com/cx-code/p/8686453.html SpringBoot里面没有 阅读全文
posted @ 2019-04-09 11:48 goodTOgreat 阅读(1790) 评论(0) 推荐(1)
摘要:报错原因如下:com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone.. 产生这个问题的原因主要在于:MySQL JDBC驱动程序的5.1.33版本与UTC时区配合使用,必须在连接字 阅读全文
posted @ 2019-04-09 10:23 goodTOgreat 阅读(751) 评论(0) 推荐(0)
摘要:如下所有举例基于springboot+mybatis项目中,SSH使用mybatis的写法也一样,只是形式不同而已 问题1.org.apache.ibatis.binding.BindingException: Parameter 'XXXX' not found.的问题解决办法 该问题的产生主要是 阅读全文
posted @ 2019-04-09 09:55 goodTOgreat 阅读(870) 评论(0) 推荐(0)
摘要:掌握如下快捷键,基本就够用了。没必要记那么多。 Ø 命令:Ctrl+Shift+A可以查找所有Intellij的命令,并且每个命令后面还有其快捷键。所以它不仅是一大神键,也是查找学习快捷键的工具。 Ø 新建:Alt+Insert可以新建类、方法等任何东西。 Ø 格式化代码:格式化import列表Ct 阅读全文
posted @ 2019-04-02 21:15 goodTOgreat 阅读(930) 评论(0) 推荐(1)