
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
当在想xml文件上右键运行的时候,提示:打开控制台,到项目根目录。执行如下:mvn -Dmybatis.generator.configurationFile=/z-dao/mybatis-generator/generatorConfig.xml -Dmybatis.generator.overwrite=true mybatis-generator:generate...
一、现象当status为Integer类型的时候,传入的值为0时,以下语句无法通过:<if test="status != null && status != ''">and a.STATUS = #{status}</if>而当传入1的时候,则可以进入到代码块。二、原因与解决mybatis在预编译sql时,使用OGNL表达式来解析if标签,对于Intege
alert(1);});alert(2);});alert(3);});
$("#button").click(function(){$.post(“abc.mvc”, $("#form").serialize(), function(res) {alert(res);});});
在插入值中,加入jdbcType即可允许空,#{item.memo,jdbcType=VARCHAR}
一、添加maven依赖<dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.2.5</version></dependency&
当我们在使用mybatis的时候,在xml中判断一个并没有传入的参数,会报错:Parameter ‘xxx’ not found. Available parameters are [xxx]
项目中使用了@Value注解:@Value("${sms.exchange}")private String exchange;启动时候报错:Could not resolve placeholder原因是配置文件中不存在该配置项。增加sms.exchange对应的配置即可。
单个查询有效,发现联合查询无效。
一、简介Thumbnailator是一个非常优秀的图片处理开源Java类库,处理效果极好,使用非常简单,极大的简化了代码量。同时支持批量处理。二、maven依赖<dependency><groupId>net.coobird</groupId><artifactId>thumbnailator</artifactId><versio