1.分页查询 ①配置类中追加分页插件 //注册分页插件 @Bean public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); } ②测试分页查询 //测试分页查询 @Test ...
分类:
其他好文 时间:
2021-03-10 13:13:53
阅读次数:
0
Spring开发步骤 ①导入坐标(maven) ②创建Bean ③创建applicationContext.xml ④在配置文件中进行配置 ⑤通过Spring容器来访问容器中的Bean,ApplicationContext是Spring容器最常用的接口,该接口有如下两个实现类: ClassPathX ...
分类:
编程语言 时间:
2021-03-10 13:12:25
阅读次数:
0
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consoleConfig': Injection of autowired dependencies failed; ne ...
分类:
其他好文 时间:
2021-03-09 13:43:34
阅读次数:
0
1、map的优点: 1、灵活性强于javabean,易扩展,耦合度低。 2、写起来简单,代码量少。 3、mybatis 查询的返回结果本身就是MAP,可能会比返回javabean快 2、map的缺点 1、javabean在数据输入编译期就会对一些数据类型进行校验,如果出错会直接提示。而map的数据类 ...
分类:
其他好文 时间:
2021-03-06 14:30:04
阅读次数:
0
Spring-05 使用注解开发 使用注解开发 1.项目准备 在spring4之后,想要使用注解形式,必须得要引入aop的包5 <!-- https://mvnrepository.com/artifact/org.springframework/spring-aop --> <dependency ...
分类:
编程语言 时间:
2021-03-03 12:24:20
阅读次数:
0
1)注册分页插件(@Configuration) @Bean public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); } 2) 使用 @Test void testPage( ...
分类:
其他好文 时间:
2021-03-01 14:15:10
阅读次数:
0
1. Spring框架是什么?它的主要模块有哪些? Spring框架是一个Java平台,提供全面的基础设施支持开发Java应用程序。Spring处理基础设施部分,这样你就可以专注于应用程序部分。Spring框架内,把一级对象通过设计模式封装起来,您可以放心的集成到您自己的应用程序而不用关注他们如何在 ...
分类:
编程语言 时间:
2021-03-01 13:01:12
阅读次数:
0
1.指定到人 @Override @Transactional(rollbackFor = Exception.class) // @GlobalTransactional public boolean startProcess(ProcessPurchaseOrder bean) { //是否启动 ...
分类:
其他好文 时间:
2021-02-26 13:05:55
阅读次数:
0
以下是自己的理解,如不对请不吝赐教谢谢,勿喷 普通的bean创建 跟下面的创建过程一样,如某个bean被aop增强了,在实例化完之后会调用AbstractAutoProxyCreator.postProcessAfterInitialization方法,这个方法就会返回被增强后的a的代理对象 然后放 ...
分类:
编程语言 时间:
2021-02-25 12:06:58
阅读次数:
0
注解驱动开发P2——@Configuration 学习地址:https://www.bilibili.com/video/BV1gW411W7wy?p=2 引用 spring4.0之二:@Configuration的使用 @Configuration定义配置类,类内部包含有一个或多个被@Bean注解 ...
分类:
其他好文 时间:
2021-02-25 11:56:11
阅读次数:
0