#ING

spring 之 lookup-method & replaced-method II

显然,lookup-method的name对应的方法是可以有方法参数的,但是,我发现,参数无法传递,传过去的参数好像被丢入了黑洞一般。。。非常奇怪。lookup-method的name即 对应的方法不能是private,也不能是static,这个应该是由cglib某些特性决定的。其返回类型,可以是一个具体类,...

spring 之 lookup-method & replace-method

初始化bean的堆栈:atorg.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$CglibSubclassCreator.instantiate(CglibSubclassingInstantiationStrat...

spring 之 factory-bean & factory-method

这两者常常是一起出现的,或者说他们经常是一起被使用的。但是其实是分为了两种情况:如果,我们在一个bean元素上同时配置 factory-bean和factory-method,那么意思就是说,这个bean的创建就使用工厂模式吧,工厂模式的创建者,也就是主体bean是 factory-method指向...

spring 之 depends-check

 我们知道springxml配置中bean的子元素property是按照setXxx(SomeTypesomeParam)方式来设值的,换句话说,是根据属性的setter方法,而不是根据属性的名字。有多少个setter,那么就可以进行多少次的<property>赋值。但是,这里bean的prope...
代码星球 ·2020-04-06

从一个异常探索spring autowired 的原理

从一个异常探索autowired的原理。首先环境是这样的:publicclassBoss{@AutowiredprivateCarcar;}//@Component加上这个注释,上面的Boss的Autowiredcar就会失败,出现下面的异常publicclassCar{privateStringbrand;priva...

spring+mybatis 配置双数据源

配置好后,发现网上已经做好的了,不过,跟我的稍有不同,我这里再拿出来现个丑:properties文件自不必说,关键是这里的xml:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema...
代码星球 ·2020-04-06

spring mvc 常见错误

 1返回400,  ——请求参数不正确 2返回406, NOT_ACCEPTABLE ————@RequestMapping(value="/user/byAcc",method=RequestMethod.GET,p...
代码星球 ·2020-04-06

Java多线程-工具篇-BlockingQueue

 转载 http://www.cnblogs.com/jackyuj/archive/2010/11/24/1886553.html  这也是我们在多线程环境下,为什么需要BlockingQueue的原因。作为BlockingQueue的使用者,我们再也不需要关心什么时候需要阻塞...

Your password has expired. To log in you must change it using a client that supports expired passwords.

[Lk]ERROR[11-2623:01:51][main]net.jweb.listener.AppInitializerListener.contextInitialized(231)|启动初始化异常:org.springframework.jdbc.CannotGetJdbcConnectionException...

Ignoring query to other database

Ignoringquerytootherdatabase   自己今天刚遇到,进入MySQL的时候,输入showdatabases; 产生如下错误 错误提示 Ignoring query to other databas...

转载 logback的使用和logback.xml详解 http://www.cnblogs.com/warking/p/5710303.html

logback的使用和logback.xml详解 一、logback的介绍  Logback是由log4j创始人设计的另一个开源日志组件,官方网站:http://logback.qos.ch。它当前分为下面下个模块:  logback-core:其它两个模块的基础模块  logback-classic:它是l...

maven 下载jar失败: Missing artifact javax.jms:jms:jar:1.1

 想从中央仓库下载,却出现404,原来,而中央仓库中都只有pom文件,而没有jar包. 那就换一个仓库吧: http://repository.jboss.com/maven2/: 终于找到了你:http://repository.jboss.com/maven2/javax/j...

mybatis-spring 集成

http://www.mybatis.org/spring/zh/index.htmlhttp://www.mybatis.org/mybatis-3/zh/java-api.html  编程API: SqlSessionsession=sqlSessionFactory.openSess...
代码星球 ·2020-04-06

<转载> GIT 操作小结 http://www.cnblogs.com/-ding/p/6008096.html

参考:http://www.cnblogs.com/zyf-zhaoyafei/p/4486220.html  作者:万境绝尘转载请注明出处:http://blog.csdn.net/shulianghan/article/details/18812279. GitHub操作流程 ...

org.artofsolving.jodconverter.office.OfficeException: failed to start and connect

 org.artofsolving.jodconverter.office.OfficeException:failedtostartandconnect docviewer调用openoffice,启动失败,检查好像是 openoffice没注册。 cd D:Prog...
首页上一页...729730731732733...下一页尾页