随笔分类 -  框架开发

后处理bean
摘要: 阅读全文

posted @ 2017-03-28 16:55 老邱2 阅读(91) 评论(0) 推荐(0)

resful风格
摘要:@PathVariable请求参数,传到后台 阅读全文

posted @ 2017-03-27 13:26 老邱2 阅读(302) 评论(0) 推荐(0)

spring异常处理三
摘要:通过定义一个ExceptionHandler注解,其他controller继承他可以根据不同的异常进行处理。 阅读全文

posted @ 2017-03-23 17:55 老邱2 阅读(83) 评论(0) 推荐(0)

spring-aop基本配置
摘要:<bean id="syslog" class="com.SysLog"></bean> <bean class="syslog.Syst"></bean> <aop:config><!-- 切点 --> <aop:pointcut expression="execution(* syslog..* 阅读全文

posted @ 2017-03-21 14:05 老邱2 阅读(84) 评论(0) 推荐(0)

复杂文件上传ajax
摘要:图 JAVA代码 js代码 阅读全文

posted @ 2017-03-20 21:24 老邱2 阅读(203) 评论(0) 推荐(0)

spring文件的下载
摘要:@RequestMapping("/downLoad") public void downLoad(HttpServletResponse response){ File file=new File("E:\\book\\JavaScript权威指南(第6版)(中文版).pdf"); if(file==null||!file.exists()){ ... 阅读全文

posted @ 2017-03-20 19:36 老邱2 阅读(123) 评论(0) 推荐(0)

spring auto
摘要:必须注入到容器中才可以auto 阅读全文

posted @ 2017-03-17 10:21 老邱2 阅读(107) 评论(0) 推荐(0)

前端控制器
摘要: 阅读全文

posted @ 2017-02-02 20:42 老邱2 阅读(92) 评论(0) 推荐(0)

spring-aop切入点配置
摘要:例如: execution (* com.sample.service.impl..*.*(..)) 整个表达式可以分为五个部分: 1.execution() 表达式主题 2.第一个星号表示返回类型 3.包名 ..*-》后面跟两点 ,表示子包 4 *表示类名 5.最后一个*表示方法名 阅读全文

posted @ 2017-01-10 21:45 老邱2 阅读(115) 评论(0) 推荐(0)

mybatis的配置
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文

posted @ 2017-01-06 17:43 老邱2 阅读(124) 评论(1) 推荐(0)

spring+redis
摘要:配置 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema 阅读全文

posted @ 2017-01-06 13:16 老邱2 阅读(190) 评论(0) 推荐(0)

spring+task配置
摘要:1.spring+task文件配置 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org 阅读全文

posted @ 2017-01-05 21:01 老邱2 阅读(353) 评论(0) 推荐(0)

spring+缓存
摘要:1.配置ehcache.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ehcache updateCheck="false" dynamicConfig="false"> 3 <diskStore path="java.io.tmpdir"/> 4 阅读全文

posted @ 2017-01-05 19:57 老邱2 阅读(184) 评论(0) 推荐(0)

spring-task
摘要:cronExpression的配置说明,具体使用以及参数请百度google 字段 允许值 允许的特殊字符 秒 0-59 , - * / 分 0-59 , - * / 小时 0-23 , - * / 日期 1-31 , - * ? / L W C 月份 1-12 或者 JAN-DEC , - * / 阅读全文

posted @ 2017-01-05 18:13 老邱2 阅读(122) 评论(0) 推荐(0)

spring bean的生命周期
摘要:package com.huawei.entity; import org.springframework.beans.BeansException;import org.springframework.beans.factory.BeanFactory;import org.springframe 阅读全文

posted @ 2017-01-03 17:40 老邱2 阅读(114) 评论(0) 推荐(0)

spring bean的初始化
摘要:scope:作用域 singleton prototype request session 默认为singleton lazy-init:default=false ,false ,true 默认为default false:不延迟初始化 lazy-init结合scope=singleton使用 s 阅读全文

posted @ 2017-01-03 17:24 老邱2 阅读(188) 评论(0) 推荐(0)

springaop实现登陆验证
摘要:1.首先配置好springmvc和springaop 2.先写好登陆方法,通过注解写代理方法 通过代理获得登陆方法的参数方法名,然后再aop代理方法内进行登陆验证 贴出代码 阅读全文

posted @ 2017-01-02 16:43 老邱2 阅读(619) 评论(1) 推荐(0)

spring集成quartz scheduler
摘要:创建项目 有两种创建quart配置作业 1.使用MethodInvokingJobDetailFactoryBean Quartz Scheduler 配置作业(MethodInvokingJobDetailFactoryBean ) 1.这个bean有两个属性分别是 targetObject 指向 阅读全文

posted @ 2017-01-02 05:14 老邱2 阅读(419) 评论(0) 推荐(0)

spring对事物的支持
摘要:... 阅读全文

posted @ 2017-01-02 01:54 老邱2 阅读(176) 评论(0) 推荐(0)

spring校验和文件上传
摘要:spring校验可以分为 vlidator和jsr303 vlidator实例 首先实现validatorjiekou 通过这个类转化为验证类,然后进行验证 在handler里通过创建进行验证 通过jsr303验证 1.加hibernate-validator.jar 首先在实体类进行注解,然后再c 阅读全文

posted @ 2017-01-01 05:23 老邱2 阅读(183) 评论(0) 推荐(0)

导航