E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Spring4
10点睛
Spring4
.1-Application Event
10.1 Application Event Spring使用Application Event给bean之间的消息通讯提供了手段 应按照如下部分实现bean之间的消息通讯 继承ApplicationEvent类实现自己的事件 实现继承ApplicationListener接口实现监听事件 使用ApplicationContext发布消息
wiselyman
·
2015-05-18 08:00
application
10点睛
Spring4
.1-Application Event
阅读更多10.1ApplicationEventSpring使用ApplicationEvent给bean之间的消息通讯提供了手段应按照如下部分实现bean之间的消息通讯继承ApplicationEvent类实现自己的事件实现继承ApplicationListener接口实现监听事件使用ApplicationContext发布消息10.2示例示例中的通讯两个bean分别为DemoListener和
wiselyman
·
2015-05-18 08:00
10点睛
Spring4
.1-Application Event
10.1 Application Event Spring使用Application Event给bean之间的消息通讯提供了手段 应按照如下部分实现bean之间的消息通讯 继承ApplicationEvent类实现自己的事件 实现继承ApplicationListener接口实现监听事件 使用ApplicationContext发布消息
wiselyman
·
2015-05-18 08:00
application
gradle在eclipse中的配置方式
gradle作为一个后起之秀,很快就得到了广泛的使用,
spring4
都开始迁移到gradle上了,今天在边看,边学的过程记录一下自己的使用过程。
lkl
·
2015-05-17 15:00
配置
gradle
路径
项目
构建
00点睛
Spring4
.1-环境搭建
0.1前置条件
Spring4
.1提倡基于JavaConfig和注解的配置,所以本教程通篇不会采用任何和xml配置相关的内容;本教程默认读者有一定的JavaWeb及Spring使用基础;本教程采用点睛的形式展现
wiselyman
·
2015-05-16 14:00
spring4
09点睛
Spring4
.1-AOP
阅读更多9.1AOPAOP可以了让一组类共享相同的行为.在OOP中只能通过继承类和实现接口,这样使代码的耦合度增强,且类继承只能为单继承,阻碍更多行为添加到一组类上;下面演示一个日志系统的实现,简单但不失表达AOP的核心内容演示通过注解拦截和通过方法规则拦截;一些小术语JoinPoint:你需要拦截的代码位置(代码里已标识)Pointcut:符合某个条件后需要执行的代码位置(代码里已标识)9.2示
wiselyman
·
2015-05-15 08:00
09点睛
Spring4
.1-AOP
9.1 AOP AOP可以了让一组类共享相同的行为.在OOP中只能通过继承类和实现接口,这样使代码的耦合度增强,且类继承只能为单继承,阻碍更多行为添加到一组类上; 下面演示一个日志系统的实现,简单但不失表达AOP的核心内容 演示通过注解拦截和通过方法规则拦截; 一些小术语 JoinPoint:你需要拦截的代码位置(代码里已标识) P
wiselyman
·
2015-05-15 08:00
spring4
09点睛
Spring4
.1-AOP
阅读更多9.1AOPAOP可以了让一组类共享相同的行为.在OOP中只能通过继承类和实现接口,这样使代码的耦合度增强,且类继承只能为单继承,阻碍更多行为添加到一组类上;下面演示一个日志系统的实现,简单但不失表达AOP的核心内容演示通过注解拦截和通过方法规则拦截;一些小术语JoinPoint:你需要拦截的代码位置(代码里已标识)Pointcut:符合某个条件后需要执行的代码位置(代码里已标识)9.2示
wiselyman
·
2015-05-15 08:00
09点睛
Spring4
.1-AOP
9.1 AOP AOP可以了让一组类共享相同的行为.在OOP中只能通过继承类和实现接口,这样使代码的耦合度增强,且类继承只能为单继承,阻碍更多行为添加到一组类上; 下面演示一个日志系统的实现,简单但不失表达AOP的核心内容 演示通过注解拦截和通过方法规则拦截; 一些小术语 JoinPoint:你需要拦截的代码位置(代码里已标识) P
wiselyman
·
2015-05-15 08:00
spring4
09点睛
Spring4
.1-AOP
9.1 AOP AOP可以了让一组类共享相同的行为.在OOP中只能通过继承类和实现接口,这样使代码的耦合度增强,且类继承只能为单继承,阻碍更多行为添加到一组类上; 下面演示一个日志系统的实现,简单但不失表达AOP的核心内容 演示通过注解拦截和通过方法规则拦截; 一些小术语 JoinPoint:你需要拦截的代码位置(代码里已标识) P
wiselyman
·
2015-05-15 08:00
spring4
08点睛
Spring4
.1-Profile
8.1ProfileProfile让在不同环境下使用不同的配置提供了支持(如开发环境下的配置和生产环境下的配置肯定是不同的,如:数据库的配置);通过设定Environment的ActiveProfiles来设定当前context需要使用的配置环境通过设定jvm的spring.profiles.active参数来设置配置环境(web项目中设置在servlet的contextparameter中)8.
wiselyman
·
2015-05-15 08:00
spring4
08点睛
Spring4
.1-Profile
阅读更多8.1ProfileProfile让在不同环境下使用不同的配置提供了支持(如开发环境下的配置和生产环境下的配置肯定是不同的,如:数据库的配置);通过设定Environment的ActiveProfiles来设定当前context需要使用的配置环境通过设定jvm的spring.profiles.active参数来设置配置环境(web项目中设置在servlet的contextparameter
wiselyman
·
2015-05-15 08:00
08点睛
Spring4
.1-Profile
阅读更多8.1ProfileProfile让在不同环境下使用不同的配置提供了支持(如开发环境下的配置和生产环境下的配置肯定是不同的,如:数据库的配置);通过设定Environment的ActiveProfiles来设定当前context需要使用的配置环境通过设定jvm的spring.profiles.active参数来设置配置环境(web项目中设置在servlet的contextparameter
wiselyman
·
2015-05-15 08:00
08点睛
Spring4
.1-Profile
8.1ProfileProfile让在不同环境下使用不同的配置提供了支持(如开发环境下的配置和生产环境下的配置肯定是不同的,如:数据库的配置);通过设定Environment的ActiveProfiles来设定当前context需要使用的配置环境通过设定jvm的spring.profiles.active参数来设置配置环境(web项目中设置在servlet的contextparameter中)8.
wiselyman
·
2015-05-15 08:00
spring4
08点睛
Spring4
.1-Profile
8.1ProfileProfile让在不同环境下使用不同的配置提供了支持(如开发环境下的配置和生产环境下的配置肯定是不同的,如:数据库的配置);通过设定Environment的ActiveProfiles来设定当前context需要使用的配置环境通过设定jvm的spring.profiles.active参数来设置配置环境(web项目中设置在servlet的contextparameter中)8.
wiselyman
·
2015-05-15 08:00
spring4
07点睛
Spring4
.1-BeanPostProcessor
阅读更多7.1BeanPostProcessorspring通过BeanPostProcessor接口可以对所有bean或者指定的某些bean的初始化前后对bean的检查或者修改提供支持;使用postProcessBeforeInitialization和postProcessAfterInitialization对bean进行操作;postProcessBeforeInitialization和
wiselyman
·
2015-05-14 08:00
07点睛
Spring4
.1-BeanPostProcessor
7.1 BeanPostProcessor spring通过BeanPostProcessor接口可以对所有bean或者指定的某些bean的初始化前后对bean的检查或者修改提供支持; 使用postProcessBeforeInitialization和postProcessAfterInitialization对bean进行操作; postProcessBeforeInitia
wiselyman
·
2015-05-14 08:00
07点睛
Spring4
.1-BeanPostProcessor
7.1 BeanPostProcessor spring通过BeanPostProcessor接口可以对所有bean或者指定的某些bean的初始化前后对bean的检查或者修改提供支持; 使用postProcessBeforeInitialization和postProcessAfterInitialization对bean进行操作; postProcessBeforeInitia
wiselyman
·
2015-05-14 08:00
07点睛
Spring4
.1-BeanPostProcessor
阅读更多7.1BeanPostProcessorspring通过BeanPostProcessor接口可以对所有bean或者指定的某些bean的初始化前后对bean的检查或者修改提供支持;使用postProcessBeforeInitialization和postProcessAfterInitialization对bean进行操作;postProcessBeforeInitialization和
wiselyman
·
2015-05-14 08:00
07点睛
Spring4
.1-BeanPostProcessor
7.1 BeanPostProcessor spring通过BeanPostProcessor接口可以对所有bean或者指定的某些bean的初始化前后对bean的检查或者修改提供支持; 使用postProcessBeforeInitialization和postProcessAfterInitialization对bean进行操作; postProcessBeforeInitia
wiselyman
·
2015-05-14 08:00
06点睛
Spring4
.1-Bean的初始化和销毁
6.1 Initialization和Destruction spring对bean初始化的时候和销毁时候进行某些操作提供了支持 利用@Bean的initMethod和destroyMethod(和xml配置的init-method和destory-method相同) 利用JSR-250的@PostConstruct和@PreDestroy 6.
wiselyman
·
2015-05-14 08:00
spring4
06点睛
Spring4
.1-Bean的初始化和销毁
阅读更多6.1Initialization和Destructionspring对bean初始化的时候和销毁时候进行某些操作提供了支持利用@Bean的initMethod和destroyMethod(和xml配置的init-method和destory-method相同)利用JSR-250的@PostConstruct和@PreDestroy6.2示例6.2.1@Bean形式的Initializat
wiselyman
·
2015-05-14 08:00
06点睛
Spring4
.1-Bean的初始化和销毁
6.1 Initialization和Destruction spring对bean初始化的时候和销毁时候进行某些操作提供了支持 利用@Bean的initMethod和destroyMethod(和xml配置的init-method和destory-method相同) 利用JSR-250的@PostConstruct和@PreDestroy 6.
wiselyman
·
2015-05-14 08:00
spring4
06点睛
Spring4
.1-Bean的初始化和销毁
阅读更多6.1Initialization和Destructionspring对bean初始化的时候和销毁时候进行某些操作提供了支持利用@Bean的initMethod和destroyMethod(和xml配置的init-method和destory-method相同)利用JSR-250的@PostConstruct和@PreDestroy6.2示例6.2.1@Bean形式的Initializat
wiselyman
·
2015-05-14 08:00
06点睛
Spring4
.1-Bean的初始化和销毁
6.1 Initialization和Destruction spring对bean初始化的时候和销毁时候进行某些操作提供了支持 利用@Bean的initMethod和destroyMethod(和xml配置的init-method和destory-method相同) 利用JSR-250的@PostConstruct和@PreDestroy 6.
wiselyman
·
2015-05-14 08:00
spring4
java 框架
Activiti5工作流 )系统为主流的 springmvc+mybaits3.2 版本,有maven版本和非maven版本,赠送同UI hibernate版本 1.有oracle、msyql、spring3.0、
spring4
.0
ssd32456752
·
2015-05-13 15:00
java
spring
框架
html5
java 微信开发
Activiti5工作流 )系统为主流的 springmvc+mybaits3.2 版本,有maven版本和非maven版本,赠送同UI hibernate版本 1.有oracle、msyql、spring3.0、
spring4
.0
ssd32456752
·
2015-05-13 15:00
java
微信开发
java微信开发
05点睛
Spring4
.1-国际化
5.1 ReloadableResourceBundleMessageSource 使用ReloadableResourceBundleMessageSource可获得不同语言的配置 此处是全局配置,适合用@Bean声明 5.2 示例 5.2.1 新建英文messagesmessages_en_US.properties wisely.name = wyf wisel
wiselyman
·
2015-05-13 08:00
spring4
05点睛
Spring4
.1-国际化
阅读更多5.1ReloadableResourceBundleMessageSource使用ReloadableResourceBundleMessageSource可获得不同语言的配置此处是全局配置,适合用@Bean声明5.2示例5.2.1新建英文messagesmessages_en_US.propertieswisely.name=wyfwisely.age=325.2.2新建中文messa
wiselyman
·
2015-05-13 08:00
05点睛
Spring4
.1-国际化
5.1 ReloadableResourceBundleMessageSource 使用ReloadableResourceBundleMessageSource可获得不同语言的配置 此处是全局配置,适合用@Bean声明 5.2 示例 5.2.1 新建英文messagesmessages_en_US.properties wisely.name = wyf wisel
wiselyman
·
2015-05-13 08:00
spring4
05点睛
Spring4
.1-国际化
5.1 ReloadableResourceBundleMessageSource 使用ReloadableResourceBundleMessageSource可获得不同语言的配置 此处是全局配置,适合用@Bean声明 5.2 示例 5.2.1 新建英文messagesmessages_en_US.properties wisely.name = wyf wisel
wiselyman
·
2015-05-13 08:00
spring4
05点睛
Spring4
.1-国际化
阅读更多5.1ReloadableResourceBundleMessageSource使用ReloadableResourceBundleMessageSource可获得不同语言的配置此处是全局配置,适合用@Bean声明5.2示例5.2.1新建英文messagesmessages_en_US.propertieswisely.name=wyfwisely.age=325.2.2新建中文messa
wiselyman
·
2015-05-13 08:00
04点睛
Spring4
.1-资源调用
阅读更多4.1Resourcespring用来调用外部资源数据的方式支持调用文件或者是网址在系统中调用properties文件可参考>中结合@PropertySource和Environment来使用也可以使用@Value来注入资源,@Value的使用将在>章节中有更详细的使用4.2示例4.2.1新增commons-io到maven依赖需使用commons-io的IOUtils工具类将InputS
wiselyman
·
2015-05-13 08:00
04点睛
Spring4
.1-资源调用
阅读更多4.1Resourcespring用来调用外部资源数据的方式支持调用文件或者是网址在系统中调用properties文件可参考>中结合@PropertySource和Environment来使用也可以使用@Value来注入资源,@Value的使用将在>章节中有更详细的使用4.2示例4.2.1新增commons-io到maven依赖需使用commons-io的IOUtils工具类将InputS
wiselyman
·
2015-05-13 08:00
04点睛
Spring4
.1-资源调用
4.1 Resource spring用来调用外部资源数据的方式 支持调用文件或者是网址 在系统中调用properties文件可参考<<02点睛
Spring4
.1-Java
wiselyman
·
2015-05-13 08:00
spring4
04点睛
Spring4
.1-资源调用
4.1 Resource spring用来调用外部资源数据的方式 支持调用文件或者是网址 在系统中调用properties文件可参考<<02点睛
Spring4
.1-Java
wiselyman
·
2015-05-13 08:00
spring4
04点睛
Spring4
.1-资源调用
4.1 Resource spring用来调用外部资源数据的方式 支持调用文件或者是网址 在系统中调用properties文件可参考<<02点睛
Spring4
.1-Java
wiselyman
·
2015-05-13 08:00
spring4
03点睛
Spring4
.1-scope
3.1 scope scope描述spring容器是怎么样新建类的实例的(bean); 在spring中默认的scope是singleton,这意味着无论你在程序中多少地方使用这个bean,它们都共享唯一个实例; spring内置的scope有如下几个: singleton:一个spring容器中只有一个bean的实例; prototype:每次调用新建一个
wiselyman
·
2015-05-12 08:00
spring4
03点睛
Spring4
.1-scope
阅读更多3.1scopescope描述spring容器是怎么样新建类的实例的(bean);在spring中默认的scope是singleton,这意味着无论你在程序中多少地方使用这个bean,它们都共享唯一个实例;spring内置的scope有如下几个:singleton:一个spring容器中只有一个bean的实例;prototype:每次调用新建一个bean的实例;request:web项目中
wiselyman
·
2015-05-12 08:00
03点睛
Spring4
.1-scope
阅读更多3.1scopescope描述spring容器是怎么样新建类的实例的(bean);在spring中默认的scope是singleton,这意味着无论你在程序中多少地方使用这个bean,它们都共享唯一个实例;spring内置的scope有如下几个:singleton:一个spring容器中只有一个bean的实例;prototype:每次调用新建一个bean的实例;request:web项目中
wiselyman
·
2015-05-12 08:00
03点睛
Spring4
.1-scope
3.1 scope scope描述spring容器是怎么样新建类的实例的(bean); 在spring中默认的scope是singleton,这意味着无论你在程序中多少地方使用这个bean,它们都共享唯一个实例; spring内置的scope有如下几个: singleton:一个spring容器中只有一个bean的实例; prototype:每次调用新建一个
wiselyman
·
2015-05-12 08:00
spring4
03点睛
Spring4
.1-scope
3.1 scope scope描述spring容器是怎么样新建类的实例的(bean); 在spring中默认的scope是singleton,这意味着无论你在程序中多少地方使用这个bean,它们都共享唯一个实例; spring内置的scope有如下几个: singleton:一个spring容器中只有一个bean的实例; prototype:每次调用新建一个
wiselyman
·
2015-05-12 08:00
spring4
02点睛
Spring4
.1-Java Config
2.1 java config spring的java config主要使用@Configuration和@Bean两个注解; 使用@Configuration注解在类上声明是一个配置类(相当于一个spring的配置xml); 使用@Bean注解在方法上,返回值是一个类的实例,并声明这个返回值是spring的一个bean,bean的name是方法名;
wiselyman
·
2015-05-12 08:00
spring4
02点睛
Spring4
.1-Java Config
2.1 java config spring的java config主要使用@Configuration和@Bean两个注解; 使用@Configuration注解在类上声明是一个配置类(相当于一个spring的配置xml); 使用@Bean注解在方法上,返回值是一个类的实例,并声明这个返回值是spring的一个bean,bean的name是方法名;
wiselyman
·
2015-05-12 08:00
spring4
02点睛
Spring4
.1-Java Config
2.1 java config spring的java config主要使用@Configuration和@Bean两个注解; 使用@Configuration注解在类上声明是一个配置类(相当于一个spring的配置xml); 使用@Bean注解在方法上,返回值是一个类的实例,并声明这个返回值是spring的一个bean,bean的name是方法名;
wiselyman
·
2015-05-12 08:00
spring4
02点睛
Spring4
.1-Java Config
阅读更多2.1javaconfigspring的javaconfig主要使用@Configuration和@Bean两个注解;使用@Configuration注解在类上声明是一个配置类(相当于一个spring的配置xml);使用@Bean注解在方法上,返回值是一个类的实例,并声明这个返回值是spring的一个bean,bean的name是方法名;2.2关于@Bean和@Component,@Ser
wiselyman
·
2015-05-12 08:00
02点睛
Spring4
.1-Java Config
阅读更多2.1javaconfigspring的javaconfig主要使用@Configuration和@Bean两个注解;使用@Configuration注解在类上声明是一个配置类(相当于一个spring的配置xml);使用@Bean注解在方法上,返回值是一个类的实例,并声明这个返回值是spring的一个bean,bean的name是方法名;2.2关于@Bean和@Component,@Ser
wiselyman
·
2015-05-12 08:00
01点睛
Spring4
.1-依赖注入
1.1 声明bean 使用上例建立的testMavenSpring项目,将pom.xml文件中的 <spring-framework.version>3.2.3.RELEASE</spring-framework.version>修改为4.1.5.RELEASE, 然后项目->右键->maven->update project; sp
wiselyman
·
2015-05-11 17:00
spring4
01点睛
Spring4
.1-依赖注入
1.1 声明bean 使用上例建立的testMavenSpring项目,将pom.xml文件中的 <spring-framework.version>3.2.3.RELEASE</spring-framework.version>修改为4.1.5.RELEASE, 然后项目->右键->maven->update project; sp
wiselyman
·
2015-05-11 17:00
spring4
01点睛
Spring4
.1-依赖注入
1.1 声明bean 使用上例建立的testMavenSpring项目,将pom.xml文件中的 <spring-framework.version>3.2.3.RELEASE</spring-framework.version>修改为4.1.5.RELEASE, 然后项目->右键->maven->update project; sp
wiselyman
·
2015-05-11 17:00
spring4
上一页
71
72
73
74
75
76
77
78
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他