![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
lb192837
这个作者很懒,什么都没留下…
展开
-
元注解/组合注解
好记性不如烂笔头,做个记录。1.我们所说的注解可分为两大类:元注解 和 组合注解2.元注解有四类:@Target@Retention@Documented@Inherited3.组合注解:@Override@suppresswarnings@@documented...........4.是否考虑过:如何将代码中的多个方法归为一类,并通过代码识别或拦截呢? 是否想偷懒,将变量的初始化全...原创 2018-05-16 20:41:53 · 315 阅读 · 0 评论 -
Springboot+ibatis 事务控制
guthub:https://github.com/liubin192837/spring/tree/master/springbootIbatisTransaction1.首先声明开启事务@SpringBootApplication@EnableTransactionManagementpublic class SpringbootibatisApplication { public ...原创 2018-03-21 16:54:32 · 1315 阅读 · 0 评论 -
spring 单例模式对系统性能是影响,有的话如何避免呢?
1.我们知道bean默认是单例模式,这对性能有何影响呢2.即单例模式对性能的影响原创 2018-03-09 17:41:13 · 1494 阅读 · 0 评论 -
JAVA CAS
1.首先我们要明白CAS是compare And Set的缩写;意义是保证操作的原子性;如其名,主要操作是比较,设置。2.如何保证原子性呢?比如对a进行"+1"操作:取出V备份(备份用cp表示)、进行"+1"操作,比较cp和v是否相等,相等则将最新的复制给v.3.本质:原理同synchronized一样,不同是讲锁的处理丢给硬件处理。在硬件层次操作,性能必然快鱼语言的层次。4.底层实现可参考如下操...原创 2018-03-09 15:35:45 · 358 阅读 · 0 评论 -
spring 注解记录
//有时发现总是要重找用法/差异,还是找个地方记录并随时更新比较好@Required 主要用于setter方法,标注的属性或bean对象要求xml中进行配置不然会报NullPointerExceptions错https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/core.html#beans...原创 2018-08-07 14:18:09 · 107 阅读 · 0 评论 -
CORS/跨域问题/springboot实践跨域
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>原创 2018-08-12 23:00:47 · 167 阅读 · 0 评论