码迷,mamicode.com
首页 >  
搜索关键字:applicationcontext    ( 2092个结果
撩课-Java每天5道面试题第20天
131.Spring是什么? 132.说说Spring 的优点? 133.说说你对Spring的IoC与DI的理解 134.解释Spring支持的几种bean的作用域 135.BeanFactory 接口和 ApplicationContext 接口有什么区别 ? ...
分类:编程语言   时间:2018-12-16 11:20:47    阅读次数:216
Sping Cloud项目启动报A component required a bean of type 'com.tianyan.bbc.dao.SecurityUserBaseMapper' that could not be found.
项目构建正常,启动和Debug报以下错误: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-12-14 09:4 ...
分类:移动开发   时间:2018-12-14 15:37:33    阅读次数:2068
spring AOP自定义注解 实现日志管理
今天继续实现AOP,到这里我个人认为是最灵活,可扩展的方式了,就拿日志管理来说,用Spring AOP 自定义注解形式实现日志管理。废话不多说,直接开始!!! 关于配置我还是的再说一遍。 在applicationContext-mvc.xml中要添加的 <mvc:annotation-driven ...
分类:编程语言   时间:2018-12-14 10:56:19    阅读次数:125
rabbitmq延迟队列demo
工程结构: 定义jar包依赖的版本,版本很重要,rabbit依赖spring,必须一致,否则报错: dependencies: spring-applicationContext: mq-applicationContext-producer.xml: mq-applicationContext-c ...
分类:其他好文   时间:2018-12-12 21:05:14    阅读次数:149
idea中applicationContext-trans.xml中的Cannot resolve bean 'dataSource'...的问题解决
问题如下: (applicationContext-trans.xml中的部分截图) 先了解问题是怎么出现的: 此处的dataSource是在applicationContext-dao.xml中配置的,如下: 本来是想直接引用过来,没想到会出现无法解析的错误 问题解决: 原因是:因为spring的 ...
分类:移动开发   时间:2018-12-11 13:00:51    阅读次数:418
10.spring:常用的数据库代码.....(不长使用了解即可)
测试代码: ApplicationContext ctx = new ClassPathXmlApplicationContext("JDBC.xml"); DataSource datasource = (DataSource)ctx.getBean("dataSource",DataSource ...
分类:数据库   时间:2018-12-11 01:34:59    阅读次数:246
7.spring:SpringAOP(配置文件)
SpringAOP(xml文件配置) 配置文件的方式,主要是在xml文件中进行配置,不使用注解! 目录: applicationContext.xml main 注: 1.配置bean,实现aop的类 2.配置切面的bean 3.配置aop需要使用<aop:config>标签 4.使用<aop:po ...
分类:编程语言   时间:2018-12-09 22:36:24    阅读次数:174
maven_SSM集成的demo
一、集成spring 二、集成springMVC 三、集成mybatis 1. pom.xml 2. web.xml 3. applicationContext.xml 4. applicationContext-mvc.xml 5. applicationContext-mybatis.xml 6 ...
分类:其他好文   时间:2018-12-08 23:45:42    阅读次数:143
2.spring集合属性
1.list Person.java applicationContext.xml 测试: 2.Map <Map>:标签里面嵌套<entry>,在<entry>中进行设置 PersonMap.java applicationContext.xml 测试: 3.Properties Datasourc ...
分类:编程语言   时间:2018-12-07 22:31:09    阅读次数:173
idea中applicationContext-dao.xml文件中Cannot resolve file***** :spring xml model validation问题
访问不了classpath下的文件夹中的文件 解决办法如下:(问题出在我创建的resources文件夹是一个普通的文件夹) 1、本来是普通的文件夹 2、ctrl+shift+alt+s打开如下界面: 3、点击Test Resources 4、apply-->OK 完成,所有的错误都消失了 ...
分类:移动开发   时间:2018-12-06 14:20:53    阅读次数:858
2092条   上一页 1 ... 38 39 40 41 42 ... 210 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!