![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码
yasuotoko
这个作者很懒,什么都没留下…
展开
-
String的内存机制
jvm 中有一个constant pool 能够在编译期确定值的String 会放到 constant pool中 新建String时,会从常量池中去拿,没有会生成并放到常量池中 例子: String a = “AA” String b = “AA” a == b -> true b = “AABB” a = a + “BB” a == b --> false a = “AA”+...原创 2019-05-27 22:24:38 · 73 阅读 · 0 评论 -
netty
channel(NioSocketChannel.Class) AbstractBootStrap中有一个channelFactory的变量(variable),每个channelFactory中有一个constract的变量,里面设的就是NioSocketChannel.Class.constract().channelFactory有一个方法叫做newChannel,实现的constarct...原创 2019-05-28 22:59:44 · 69 阅读 · 0 评论 -
maven搭建可自动部署到tomcat的Spring mvc 注释项目
start a web-app project from maven add the spring , javax-servlet dependencies of maven (the servlet’s scope is should be compile) add the plugin of maven-compiler-plugin,maven-war-pligun,tomcat7-mav...原创 2019-06-06 00:37:23 · 76 阅读 · 0 评论 -
Spring的系统学习1-DI 装配bean
Bean 的配置 自动化装配 @component 组件扫描 + @autowired 自动装配 ||ps: 默认的beanId=类名的第一个字母小写,可以用@component(“benaId”) ||@autowired 可以用在构造器和setter方法上,required可以设成false,找不到或者有多个适配的会报错 ||@Inject : java依赖注入规范 @componentS...原创 2019-06-25 22:02:49 · 87 阅读 · 0 评论 -
Spring 学习D2-高级装配
环境和profile @Profile(“dev”),@Profie(“prod”)可以用在类(spring3.1)和方法(spring3.2)上面,只有在环境激活的时候才会创建 <beans profile="dev > </beans , <beans profile="prod > </beans spring.profiles.active , spr...原创 2019-06-25 23:28:56 · 137 阅读 · 0 评论 -
Sprig学习D3-AOP
通知(advice),切点(pointcut),连接点(joinpoint) 切点的写法 @Aspect 声明一个切面 @Before (“execution(* concert.Performance.perform(…)) && within(concert.)and bean(‘woodstock’)") @After ("execution( concert.Perfor...原创 2019-06-27 00:07:06 · 142 阅读 · 0 评论