爷的眼睛闪亮
insideDotNet En_summerGarden
随笔 - 670,  文章 - 0,  评论 - 53,  阅读 - 191万
03 2017 档案
mybatis 批量更新
摘要:<!-- 批量修改 --> <update id="batachUpdateFieldChild" parameterType="java.util.List"> update yryz_field_child c set c.designation= <foreach collection="li 阅读全文
posted @ 2017-03-31 17:31 爷的眼睛闪亮 阅读(143) 评论(0) 推荐(0) 编辑
添加时间数据时 出现多一天或者少一天的问题 解决方案
摘要:这个是时区的问题 是JDBC驱动6.0.3的版本 一个bug 需要在链接数据库的URL后面制定 serverTimezone=GMT%2B8 (东八区时区) 阅读全文
posted @ 2017-03-31 17:11 爷的眼睛闪亮 阅读(888) 评论(0) 推荐(0) 编辑
页面上下移动,点发布的时候保存到数据库
摘要:封装的commonSort.js function resetSort() { $("table tbody tr").each(function(index, obj) { $($(obj).find('td :eq(0)')).text(index + 1); })} function up() 阅读全文
posted @ 2017-03-28 20:36 爷的眼睛闪亮 阅读(251) 评论(0) 推荐(0) 编辑
Win10 无法用内置管理员帐户打开 解决方案
摘要: 阅读全文
posted @ 2017-03-25 13:36 爷的眼睛闪亮 阅读(178) 评论(0) 推荐(0) 编辑
eclipse 配置maven 项目tomcat 运行
摘要: 阅读全文
posted @ 2017-03-25 11:59 爷的眼睛闪亮 阅读(268) 评论(0) 推荐(0) 编辑
No goals have been specified for this build 解决方案
摘要:运行maven报错:[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available 阅读全文
posted @ 2017-03-24 16:03 爷的眼睛闪亮 阅读(4782) 评论(0) 推荐(0) 编辑
字符串去重(hashSet)
摘要:public static String deleteRepeat(String strn){ String s=strn; String[] array = s.split(","); Set<String> staffsSet = new HashSet<>(Arrays.asList(arra 阅读全文
posted @ 2017-03-23 20:09 爷的眼睛闪亮 阅读(1363) 评论(0) 推荐(0) 编辑
不区分大小写
摘要:String flag="all".toLowerCase();(小写) String flag="all".toUpperCase;(大写) 不区分大小写,无非就是将传入的参数统一转成小写 或者统一转成大写 阅读全文
posted @ 2017-03-23 10:07 爷的眼睛闪亮 阅读(192) 评论(0) 推荐(0) 编辑
list 组合,模糊查询llist 数据(不走数据库)
摘要:@ResponseBody @POST @Path("/megerPerson/{realName}") public ResultEntity partnerList(@PathParam("realName") String realName) { String flag="all".toLow 阅读全文
posted @ 2017-03-23 10:05 爷的眼睛闪亮 阅读(211) 评论(0) 推荐(0) 编辑
字符串去重
摘要:public static String deleteRepeat(String str){ List list = new ArrayList(); StringBuffer sb = new StringBuffer(str); int j=0; for(int i=0; i<str.lengt 阅读全文
posted @ 2017-03-21 20:32 爷的眼睛闪亮 阅读(131) 评论(0) 推荐(0) 编辑
non-compatible bean definition of same name and class
摘要:在整合struts2.1.6+spring2.5.6开发中,使用了注解和struts-convention来实现零配置管理。spring也使用注解annotation方式。现在的问题是:我在连个个不同package中有两个相同名称的类,只是类所在的目录不同。例如在 com.idearsoft.ide 阅读全文
posted @ 2017-03-21 15:16 爷的眼睛闪亮 阅读(15924) 评论(0) 推荐(0) 编辑
mybatis 一对多
摘要:person package com.kerwin.mybatis.pojo;import java.util.List;public class Person { private int id; private String name; private List<Orders> orderList 阅读全文
posted @ 2017-03-20 19:41 爷的眼睛闪亮 阅读(201) 评论(0) 推荐(0) 编辑
分页 返回 json格式数据
摘要:分页工具类PageBean.java package org.activeii.activeii.app.person.util;import java.util.List;public class PageBean<T> { private int pageIndex;// 当前页数 privat 阅读全文
posted @ 2017-03-20 11:34 爷的眼睛闪亮 阅读(7099) 评论(0) 推荐(0) 编辑
Required MultipartFile parameter 'file' is not present error
摘要:<input type=“file”> 中的name 与id 属性 与 addbanner(@RequestParam("file") MultipartFile file 不一致 正确的应为 相同 阅读全文
posted @ 2017-03-10 17:24 爷的眼睛闪亮 阅读(4383) 评论(0) 推荐(0) 编辑
maven 打包不全(xml,properties文件没打进包)解决方案
摘要:在pom.xml的build标签中加入以下代码即可 <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </res 阅读全文
posted @ 2017-03-07 14:05 爷的眼睛闪亮 阅读(5429) 评论(0) 推荐(0) 编辑
springmv日志debug异常,javax.naming.NameNotFoundException
摘要:解决方案: 在web.xml配置如下代码即可: <context-param> <param-name>spring.profiles.active</param-name> <param-value>dev</param-value> </context-param> <context-param 阅读全文
posted @ 2017-03-04 17:23 爷的眼睛闪亮 阅读(320) 评论(0) 推荐(0) 编辑
Multiple Contexts have a path of "/xxxx"问题解决
摘要:经查看,问题出在Servers中: server.xml文件中的<context>标签重复,导致Tomcat启动时有重复,将重复的删除即可解决问题。 阅读全文
posted @ 2017-03-04 17:16 爷的眼睛闪亮 阅读(3715) 评论(0) 推荐(0) 编辑
SpringMVC整合quartz,实现定时任务
摘要:<dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>1.8.4</version> </dependency> 其次 spring中applicationConte 阅读全文
posted @ 2017-03-04 17:12 爷的眼睛闪亮 阅读(684) 评论(0) 推荐(0) 编辑
js 上传图片进行回显
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2017-03-02 16:06 爷的眼睛闪亮 阅读(335) 评论(0) 推荐(0) 编辑
jQuery 遮罩层
摘要:<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script><script type="text/javascript">$(function () { $(" 阅读全文
posted @ 2017-03-02 14:30 爷的眼睛闪亮 阅读(232) 评论(0) 推荐(0) 编辑
jQuery 全选 正反选
摘要:<script src="http://code.jquery.com/jquery-1.4.4.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('input').at 阅读全文
posted @ 2017-03-01 19:09 爷的眼睛闪亮 阅读(182) 评论(0) 推荐(0) 编辑
将本地jar包添加到maven中
摘要:将需要引入的jar包拷贝到maven项目的WEB-INF/lib中 在pom.xml中配置如下: <dependency> <groupId>com.xxxxx.union</groupId> <artifactId>bcprov</artifactId> <version>0.0.1</versi 阅读全文
posted @ 2017-03-01 14:31 爷的眼睛闪亮 阅读(144) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示