
java
java_li_bin
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ssh框架中调用mysql存储过程的方式
//得到connection对象 Connection connection = hibernateDaoSysService.getConnection(); //调用存储过程 CallableStatement prepareCall = connection.prepareCall("{call statisticalMonthDetail(?)}"); //往存储过程中传入参数原创 2016-04-14 16:25:20 · 1426 阅读 · 1 评论 -
IE和火狐浏览器下载文件,文件命乱码
String UserAgent = request.getHeader("USER-AGENT").toLowerCase(); response.reset(); response.setContentType("application/x-msdownload"); String fileName = CacheManager.getContent(file.getName(),Str原创 2016-05-16 09:46:21 · 331 阅读 · 0 评论 -
java线程
ThreadService threadService = new ThreadService(); Thread thread=new Thread(threadService,"线程一"); Thread thread1=new Thread(threadService,"线程二"); thread.start(); thread1.start(); ----------------原创 2016-05-16 14:32:42 · 339 阅读 · 0 评论 -
set集合
Set set=new HashSet(); set.add("name"); set.add("age"); set.add("sex"); 第一种遍历方式: Iterator iterator = set.iterator(); while(iterator.hasNext()){ System.out.println(iterator.next()); }原创 2016-04-21 13:49:53 · 168 阅读 · 0 评论 -
java操作redis
public static void main(String[] args) { //连接redis Jedis jedis=new Jedis("172.16.1.114"); //java读取字符串 System.out.println("ping:"+jedis.ping()); jedis.set("name", "redis"); String name = jedis.ge原创 2016-04-21 13:53:10 · 363 阅读 · 0 评论 -
spring AOP
spring配置文件中的配置: 类中的代码: package com.tg.common.core.util; import java.text.SimpleDateFormat; import java.util.Date; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.a原创 2016-04-22 14:10:45 · 312 阅读 · 1 评论