- 博客(9)
- 收藏
- 关注
原创 eclipse创建maven web项目报错:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-weba
到网上找了好多资料,有很多说添加新的Catalog配置的,但是我试了都没用,最后找了一个解决了问题解决方案:第一步:换个仓库地址,用阿里云的 nexus-aliyun central Nexus aliyun http://maven.aliyun.com/nexus
2017-06-14 09:20:17
3259
2
原创 关于Eclipse快捷键的整理
适当合理的运用快捷键是可以帮我们提高编码效率的,今天我就讲一些常用的Eclipse中的快捷键整理出来分享给大家Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)A
2017-05-26 22:31:31
240
原创 mybatis+mysql带模糊查询的分页代码
mybatis+mysql带模糊查询的分页代码 1.page类的书写import java.util.List;public class Page<T> { //显示的记录 private List<T> listRecords; //总页数 private int totalPage; //总记录数 private int totalRecords
2017-05-09 17:26:38
5359
原创 springmvc+mybatis+mysql 根据生日计算年龄
1.mapper.xml中的查询 select YEAR(NOW())-YEAR(#{birth}) from dual 2.service中的配置 3.controller中的配置 主要就是计算年龄的时候单独计算,然后将计算出来的年龄传入controller中的参数中就行了这只是我的一点做法,希望各位大神多多指教
2017-05-09 17:11:54
2155
转载 Spring mvc,jQuery和JSON数据交互
一、实验环境的搭建1、Spring mvc jar。导入spring mvc运行所需jar包。导入如下(有多余) 2、json的支持jar 3、加入jQuery。选用jquery-3.0.0.min.js,放在WebRoot/JS文件夹 导入jQuery到jsp页面如下
2017-04-30 10:55:28
349
原创 javax.el.PropertyNotFoundException: Property 'cid' not found on type java.lang.String
检查了半天这个问题,最后发现是在jsp页面 c:forEach 里面的items没有加${}javax.el.PropertyNotFoundException: Property 'cid' not found on type java.lang.Stringat javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java
2017-04-28 12:23:08
1286
原创 mybatis模糊查询问题
在数据库里面测试过这条sql语句select * from table column like concat('%','value','%')没有一点问题,但是在mapper.xml 中 就是报错最后查看网上的,试了一下这个select * from table column like concat(concat('%','value'),'%')就没有问题了
2017-04-28 12:20:17
342
原创 Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException
今天在做一个跳转的时候总是报错,未定义字段,检查过数据库没有问题,最后没办法,又重新检查了一遍代码,才发现是连接数据库连接错了,看来还是要仔细一点HTTP Status 500 - Request processing failed;nested exception is org.springframework.jdbc.BadSqlGrammarException:typ
2017-04-24 11:34:10
12358
转载 EL表达式中的比较
eq相等 ne、neq不相等, gt大于, lt小于 gt大于, lt小于 gte、ge大于等于 lte、le 小于等于 not非 mod求模 is [not] div by是否能被某数整除 is [not] even是否为偶数 is [not] even by $b即($a / $b) % 2 == 0 is [not] odd是否
2017-04-23 19:49:36
1229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人