BeanFactory是spring容器的顶层bean工厂,它提供了从容器获取bean,判断是否存在bean的一些简单方法。FactoryBean是创建 Bean对象的一种方式,如果我们不希望通过扫描注册,就可以使用这种方式注册Bean。 一:BeanFactory接口 这个接口类提供getBean ...
分类:
编程语言 时间:
2020-07-03 12:35:51
阅读次数:
65
1.pom添加热部署 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 2.File->Settings->Comp ...
分类:
编程语言 时间:
2020-07-03 12:24:41
阅读次数:
60
1.通过IDEA加大jvm,tomcat内存 在VM options中添加:-Dfile.encoding=UTF-8 -mx2048m -XX:MaxPermSize=2048m -Drebel.spring_plugin=true -Drebel.hibernate_plugin=true 2. ...
分类:
其他好文 时间:
2020-07-03 12:22:52
阅读次数:
67
Native Query throw exception dto code import lombok.Value; @Value public class IdsOnly { Integer id; String otherId; } repository public interface Tes ...
分类:
编程语言 时间:
2020-07-03 11:00:36
阅读次数:
147
Springboot 版本 2.0.3.RELEASE github : https://github.com/szjomin/SpringBootZookeeperConfig 一、java pom 文件 - properties <spring-cloud.version>Finchley.RE ...
分类:
编程语言 时间:
2020-07-03 10:48:05
阅读次数:
254
1.引入了前缀,解决了前缀问题 http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd 组件扫描 将组件扫描<context:component-scan b ...
分类:
移动开发 时间:
2020-07-03 01:19:01
阅读次数:
91
@Component: /** * 原来在XML的配置 * <bean id="IAccountService_annotation" class="main.java.service.impl.IAccountService_annotationImpl" > * <property name=" ...
分类:
编程语言 时间:
2020-07-03 00:49:19
阅读次数:
73
https://zhuanlan.zhihu.com/p/107096130假设Cache大小8KB,CacheLine大小256B,32行CacheLine,CPU是32位的。4KB的页。32位虚拟地址 = 20位虚拟页号+12位页内偏移虚拟页号物理页号0x0xVIVT虚拟地址作为索引以及tag域... ...
分类:
系统相关 时间:
2020-07-02 23:24:46
阅读次数:
117
开发背景什么的我就不介绍了官网介绍:https://spring.io/guides/tutorials/spring-boot-oauth2/ 既然大家需要用到这个技术 直接撸代码吧!!! 1.创建maven springboot项目 添加相关依赖 采用最新的版本(相关依赖版本如下) <!--sp ...
分类:
编程语言 时间:
2020-07-02 22:11:58
阅读次数:
83
前言最近花了两天时间,整理了一下String的源码。这个整理并不全面但是也涵盖了大部分Spring源码中的方法。后续如果有时间还会将剩余的未整理的方法更新到这篇文章中。方便以后的复习和面试使用。如果文章中有地方有问题还请指出。简述字符串广泛应用在Java编程中,在Java中字符串属于对象,Java提供了String类来创建和操作字符串。字符串缓冲区支持可变字符串。因为String对象是不可变的,因
分类:
其他好文 时间:
2020-07-02 22:02:39
阅读次数:
59