随笔分类 -  java-spring

自定义注解拦截(比如自定义注解,登陆拦截)
摘要:1.注解类 2.拦截类 3.使用类 通过使用@Mytest注解,完成登陆拦截校验. 阅读全文

posted @ 2018-09-13 10:40 wonder2636 阅读(1395) 评论(0) 推荐(0)

Spring @Transactional的使用及原理
摘要:转自:https://blog.csdn.net/aichuanwendang/article/details/53306351 本文主要讨论Spring声明式事务中使用注解@Transactional的情况,包括以下主要内容: Spring @Transactional的配置; Spring @T 阅读全文

posted @ 2018-08-08 18:29 wonder2636 阅读(268) 评论(0) 推荐(0)

spring中BeanPostProcessor笔记
摘要:BeanPostProcessor是Spring中定义的一个接口,其与之前介绍的InitializingBean和DisposableBean接口类似,也是供Spring进行回调的。Spring将在初始化bean前后对BeanPostProcessor实现类进行回调,与InitializingBea 阅读全文

posted @ 2018-04-25 16:49 wonder2636 阅读(129) 评论(0) 推荐(0)

spring cloud zuul filter 设置过滤请求
摘要:利用spring cloud zuul 设置spring boot 中的filter ,出现了跨域问题,然后根据设置response可解决跨域,同时完成过滤请求 ********************************************************************* 阅读全文

posted @ 2017-09-07 16:09 wonder2636 阅读(566) 评论(0) 推荐(0)

通过注解的方式允许跨域
摘要:SpringMVC解决跨域的两种方案 1. 什么是跨域 跨域,即跨站HTTP请求(Cross-site HTTP request),指发起请求的资源所在域不同于请求指向资源所在域的HTTP请求。 2. 跨域的应用情景 当使用前后端分离,后端主导的开发方式进行前后端协作开发时,常常有如下情景: 后端开 阅读全文

posted @ 2017-09-05 20:10 wonder2636 阅读(563) 评论(0) 推荐(0)

java中使用encode转码和解码
摘要:String str = URLEncoder.encode("中国","utf-8"); System.out.println(str); //解码 String str1=URLDecoder.decode(str, "UTF-8"); System.out.println(str1); 打印结 阅读全文

posted @ 2016-11-02 10:26 wonder2636 阅读(51035) 评论(0) 推荐(1)

java-Sping-IOC
摘要:1.IoC容器建立 BeanFactory是一个最基本的接口规范,其中包含getBean,containsBean,getAliases等方法 Spring提供了一个BeanFactory的基本实现,XmlBeanFactory同样的通过使用模板模式来得到对IOC容器的抽象- AbstractBea 阅读全文

posted @ 2016-05-30 10:58 wonder2636 阅读(217) 评论(0) 推荐(0)

导航