spring
javafanwk
专注微服务架构,熟悉react、大数据、云计算,喜欢看java编程思想,设计模式,算法等书,希望通过我的努力减少代码量,提高java的标准化,提高程序的稳定度,认真搞技术,一直在路上,希望大家共同前行,进步。。。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Centos7防火墙端口
在CentOS 7或RHEL 7或Fedora中防火墙由firewalld来管理。常用命令:systemctl status firewalld 查看防火墙状态systemctl start/stop/resatart firewalld 开启/停止/重启防火墙firewall-cmd –zone=public –add-port=80/tcp –permanent 开启80端口,perman...原创 2018-06-13 10:37:37 · 191 阅读 · 0 评论 -
Spring注解 --Configuration
//配置类==配置文件 @Configuration //告诉Spring这是一个配置类 @ComponentScans( value = { @ComponentScan(value="com.atguigu",includeFilters = { /* @Filter(type=FilterType.ANNOTATION,classes={Controller.cla...原创 2018-07-10 09:30:42 · 1007 阅读 · 0 评论 -
Spring中的@AliasFor标签
@AliasFor标签:来给注解的属性起别名,让使用注解时,更加的容易理解,必须成对使用很多源码中都有类似的例子@Retention(RetentionPolicy.RUNTIME) @Target({}) @interface Filter { /** * The type of filter to use. * <p>Default is {@link Fil...原创 2018-07-05 18:12:52 · 864 阅读 · 0 评论 -
Spring AOP详解
import org.aopalliance.aop.Advice;import org.aopalliance.intercept.MethodInterceptor;import org.springframework.aop.Advisor;import org.springframework.aop.Pointcut;import org.springframework.aop.frame...原创 2018-07-13 20:12:42 · 211 阅读 · 0 评论 -
Autowired Resource Inject 注解的区别
import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annotation.Qualifier;import org.springframework.context.annotation.Bean;import org.springframewor...原创 2018-07-13 20:14:18 · 194 阅读 · 0 评论 -
bean的生命周期注解
import org.springframework.context.ApplicationListener;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.ComponentScan;import org.springframework.context...原创 2018-07-13 20:16:32 · 402 阅读 · 0 评论 -
Conditional Import Scope 注解
//类中组件统一设置。满足当前条件,这个类中配置的所有bean注册才能生效;@Conditional({WindowsCondition.class})@Configuration@Import({Color.class,Red.class,MyImportSelector.class,MyImportBeanDefinitionRegistrar.class})//@Import导入组件,id默...原创 2018-07-13 20:27:01 · 215 阅读 · 0 评论 -
JdbcTemplate 入参为List
JdbcTemplate主要提供以下五类方法: execute方法:可以用于执行任何SQL语句,一般用于执行DDL语句; update方法及batchUpdate方法:update方法用于执行新增、修改、删除等语句;batchUpdate方法用于执行批处理相关语句; query方法及queryForXXX方法:用于执行查询相关语句; call方法:用于执行存储过...原创 2019-08-19 15:50:17 · 3527 阅读 · 0 评论
分享