今天照着书,试着配了AOP(全注解),结果踩了各种坑,后来参考书附带的源码,终于走出来了,现在总结一下 除了spring的jar包以外,还需要导入以下包: 1、Spring核心配置文件beans.xml(这里是大坑) 如果全部采用注解的话,bean是不需要在这里配置的,只需要在对应的类上面写上@Co ...
分类:
编程语言 时间:
2018-06-29 23:31:37
阅读次数:
194
Spring数据库查询模版 JdbcTemplate,该类是spring提供的数据库查询类,不如mybatis好用 配置文件: 数据库信息单独写在一个文件里: 增删改操作 update(String sql, Object... obj);批量添加 batchUpdate(sql, List<Obj ...
分类:
数据库 时间:
2018-06-29 01:19:21
阅读次数:
195
一、oauth中的角色 client:调用资源服务器API的应用 Oauth 2.0 Provider:包括Authorization Server和Resource Server (1)Authorization Server:认证服务器,进行认证和授权 (2)Resource Server:资源 ...
分类:
其他好文 时间:
2018-06-28 13:47:32
阅读次数:
211
https://www.cnblogs.com/qiankun-site/p/5886673.html 1、此监听器主要用于解决java.beans.Introspector导致的内存泄漏的问题 2、此监听器应该配置在web.xml中与Spring相关监听器中的第一个位置(也要在ContextLoa ...
分类:
其他好文 时间:
2018-06-25 15:08:12
阅读次数:
138
web.xml配置 spring配置,这里拆成了三个文件 applicationContext.xml <?xml version="1.0" encoding="GBK"?> <beans xmlns="http://www.springframework.org/schema/beans" xm ...
分类:
编程语言 时间:
2018-06-24 23:49:01
阅读次数:
254
错误提示:java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory.BeanCreationException: Error crea ...
分类:
移动开发 时间:
2018-06-24 10:28:32
阅读次数:
301
Linux常用命令大全 系统信息 arch 显示机器的处理器架构(1) uname -m 显示机器的处理器架构(2) uname -r 显示正在使用的内核版本 dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI) hdparm -i /dev/hda 罗列一个磁盘的架构特性 ...
分类:
系统相关 时间:
2018-06-23 13:18:31
阅读次数:
158
java Spring AOP编写MAVEN项目,编译时出现错误提示如下: java.lang.IllegalStateException: Failed to load ApplicationContext Caused by: org.springframework.beans.factory. ...
分类:
移动开发 时间:
2018-06-23 11:33:39
阅读次数:
1383
动词搭配宾语(200个) Book 5 第六册1-7课中“谓语+宾语搭配” The human attack on the ecosphere has instigated an ecological counterattack. Nature knows best. A wire zings th ...
分类:
其他好文 时间:
2018-06-23 00:01:26
阅读次数:
181
错误:org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.util.List]: Specified class 这是我使用Spring MVC的时候出的错误,在前台 ...
分类:
编程语言 时间:
2018-06-22 22:50:42
阅读次数:
281