在spring3以上版本中使用spring的依赖注入(注解或者xml方式)和aop功能时,发现了一个问题,如果不设置那么在获取bean时一直报:(无论通过name还是type都获取不到bean)
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type
或者
java.lan...
分类:
编程语言 时间:
2015-07-31 18:19:52
阅读次数:
156
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException: White ...
分类:
其他好文 时间:
2015-07-31 13:10:26
阅读次数:
1703
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.sprin...
分类:
编程语言 时间:
2015-07-31 01:25:49
阅读次数:
157
http://coolshell.cn/articles/8883.html这篇文章来源于Quroa的一个问答《What are some time-saving tips that every Linux user should know?》—— Linux用户有哪些应该知道的提高效率的技巧。我觉...
分类:
系统相关 时间:
2015-07-31 01:13:54
阅读次数:
144
一、加载路径中的通配符:?(匹配单个字符),*(匹配除/外任意字符)、**/(匹配任意多个目录)classpath:app-Beans.xml说明:无通配符,必须完全匹配classpath:App?-Beans.xml说明:匹配一个字符,例如 App1-Beans.xml 、 App2-Beans....
分类:
编程语言 时间:
2015-07-30 21:15:48
阅读次数:
269
代理了MaBatis Generator自动生成的Mapper的类
package com.aliapp.wxxd.material.service;
import interfaces.EntityWrapperInterface;
import java.util.List;
import org.springframework.beans.factory.annotation.Aut...
分类:
编程语言 时间:
2015-07-30 15:00:20
阅读次数:
156
今天数据库连接配置全写在hibernate.cfg.xml的时候没有问题,与spring整合的时候就出现了这个问题,反复查了代码,没找到问题
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path re...
分类:
其他好文 时间:
2015-07-30 00:50:40
阅读次数:
128
题意:王子每月买m个灯泡给n个房间换灯泡,如果当前有的灯泡数够列表的第一个房间换的就全换,直到灯泡不够为止,给出q个查询,查询x月已经换好几个房子,手里还剩多少灯泡。解法:水题……小模拟。代码:#include#include#include#include#include#include#incl...
分类:
其他好文 时间:
2015-07-29 15:24:12
阅读次数:
94
严重:?StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException:?Error?creating?bean?with?name?‘webSocketHandlerMapping‘?defined?in?class?path?resource?[org/sp...
分类:
编程语言 时间:
2015-07-28 16:10:37
阅读次数:
1896
springMVC-mvc.xml 配置文件片段讲解 (未使用默认配置文件名)
Xml代码
xml version="1.0" encoding="UTF-8"?>
beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w...
分类:
编程语言 时间:
2015-07-28 10:45:43
阅读次数:
184