- 博客(13)
- 资源 (26)
- 问答 (4)
- 收藏
- 关注
原创 Myeclipse8.5安装Velocity插件
Velocity是web开发中的是视图层技术。是一种模版语言,视图层技术还使用过jsp。现在做电子商务网站,用到Velocity,文件名.vm 结尾。简单的使用感觉和其他标签技术相同,循环.选择,属性设置,开发普通网页够了,深入没有研究。这里只说安装插件。我这里以veloeclipse(google code)离线安装,下载1.【Velocity插件安装】右键点击Myeclip
2015-02-13 12:53:10 1042
原创 junit4 (三)和spring-test结合使用
使用注解简化了可以和Junit文章相比较看出。import org.junit.Assert;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.test.c
2015-02-12 16:12:36 792
原创 Jquery笔记(二)调试
js调试以前用ie8使用alert一步步的,错误提示个人感觉不好。现在使用chrome不仅可以js调试还可以调css在线看效果。F12点击进入调试。1. Console选项卡可以看打印信息。 可以在js代码中使用console("进入**")打印语句,和alert不同alert()是弹框,而console是打印在控制台,2. Console选项卡输入dom节点,$("****")
2015-02-12 10:46:50 632
转载 Spring加载resource时classpath*:与classpath:的区别
Spring可以通过指定classpath*:与classpath:前缀加路径的方式从classpath加载文件,如bean的定义文件.classpath*:的出现是为了从多个jar文件中加载相同的文件.classpath:只能加载找到的第一个文件.比如 resource1.jar中的package 'com.test.rs' 有一个 'jarAppcontext.xml' 文件,内容如下
2015-02-12 10:08:05 499
原创 Linux常用命令
通过ssh工具连接到Linux服务器,我使用的是Xshellcd 进入文件ls 查看文件tail -f XX.log 查看日志文件grep -10 'key' XX.log 根据关键字查找打印的日志。 key为关键字。
2015-02-12 09:46:59 639
原创 spring2.5整合ibatis
SqlMapClient对象 这个对象是iBatis操作数据库的接口(执行CRUD等操作),它也可以执行事务管理等操作。这个类是我们使用iBATIS的最主要的类。<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.
2015-02-09 17:31:21 618
原创 spring整合mybatis
1.我们知道在Mybatis的所有操作都是基于一个SqlSession的,SqlSession也是由SqlSessionFactory来产生的,但是Mybatis-Spring给我们封装了一个SqlSessionFactoryBean。<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http:
2015-02-09 10:53:57 684
转载 mysql 创建定时器
mysql定时器是系统给提供了event,而oracle里面的定时器是系统给提供的job。废话少说,下面创建表:create table mytable (id int auto_increment not null,name varchar(100) not null default '',introduce text not null,createtime timestam
2015-02-09 10:41:47 470
原创 文件上传 使用springmvc
package com.htf.controller;import java.io.File;import java.io.IOException;import java.text.SimpleDateFormat;import java.util.Date;import javax.servlet.http.HttpServletRequest;import javax.servl
2015-02-06 16:39:26 637
原创 文件下载
@RequestMapping(value = "/downloadtradeinfo")public void downloadtradeinfo(Model model, HttpServletRequest request,HttpServletResponse response) { try { String modlename="文件FOO.doc"; String te
2015-02-05 11:12:52 627
原创 properties读取
package test;import java.io.IOException;import java.io.InputStream;import java.util.Properties;public class readproperties { public static void main(String[] args) { //配置文件放在src下 InputStr
2015-02-05 10:00:28 674
原创 ApplicationContext 测试getBean
package test;import org.apache.log4j.Logger;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;import com.foo.service.B
2015-02-04 16:13:46 1040
原创 存储过程调用 遍历返回结果集
//java调用存储过程 使用游标遍历结果集public void getCallableStatement(){ CallableStatement cs=null; Connection conn=this.getConnection(); //存储过程 用户名.procedure String procedure="{call emp_pkg.pro_read(?,?)}";
2015-02-03 09:49:01 1828
wordTemplate.rtp
2017-07-13
crypto-js-develop
2016-02-29
quartz1.8开发包
2015-11-19
spring + jtom 事务控制
2017-03-16
Linux下 rpm安装nginx
2016-08-31
x86_64-whatever-linux2
2016-08-31
kafka.common.KafkaException:
2016-03-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人