- 博客(6)
- 收藏
- 关注
原创 通过mybatis查询集合list,list的size不为0,但是list里面的对象为空解决办法
检查mybatis文件,实体类的字段名以及字段的个数必须和数据库的字段名和字段个数一一对应,否则就会出现以上情况
2018-09-29 11:53:34 6281
原创 eclipse 开发spring boot 入门级程序
打开eclipse-->点击help-->点击eclipse marketplace-->点击search输入sts或者点击popular: 安装sts插件: 安装完成后点击file-->新建一个mave project,然后点击next: 到这个界面选择比较常用的maven-archetype-webapp,点击next: 到这个界面输入你的gro...
2018-09-04 14:39:38 608
原创 oracle 分页查询语句
select * from ( select REC.*,ROWNUM RN from (select t.* from table t)REC where ROWNUM <= num2 ) where RN >= num1若果需要对结果集进行排序:可这样写,select * from ...
2018-09-04 14:05:17 401
原创 spring boot无法自动注入bean?原因在这儿
Description:Field helloSpringBootService in com.zd.hellospringboot.HelloController required a bean of type 'com.zd.service.HelloSpringBootService' that could not be found.Action:Consider defin...
2018-09-04 11:33:45 4461
原创 spring quartz定时任务配置
1:新建需要执行定时任务的类,一般写在controller层里面,建好需要执行的方法:2.写好配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XM...
2018-09-03 10:18:09 381
原创 流关闭?blob无法转换为javastring类型?
当你数据库的数据类型为LONG(长字符串)或者blob,clob类型的时候,在执行查询的时候,mybati映射文件(就是你写sql的那个文件)无法直接将该类型的字段转为string类型(就算你的jdbcType=longvarchar,也无法转换);在这里就必须想办法使其能够转为java的string类型,有两种情况,第一种:数据的字符长度没有超过4000,在oralce数据库中写一个强转的函数,...
2018-09-03 10:04:10 399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人