![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
测试猿xx
小白虾,大白菜
展开
-
执行程序时报the selection cannot be launched,and there are no recent launches
执行程序的时候报the selection cannot be launched,and there are no recent launches,无法启动选定内容,并且没有最近的启动。这种检查自己的代码问题,特别是一些容易忽略的地方, 比如main写成mian,亦或者是String写成Stng,我的就是main写成mian导致,细节决定成败。参考:https://blog.csdn.ne...转载 2020-03-01 22:10:49 · 3348 阅读 · 0 评论 -
i++与++i的区别
i++与++i的简单区别:i++是先赋值,然后在自增,例如a=i++ ----- a=i,i=i+1++i是先进行自增,然后在进行赋值 例如a=++i ------ i=i+1,a=i转载 2018-12-06 10:16:04 · 121 阅读 · 0 评论 -
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from
练习spring的时候遇到的问题:org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [beans.xml] is invalid; nested exception is org.xml.sax.SAXPar...原创 2019-02-22 15:52:37 · 2258 阅读 · 0 评论 -
DI依赖注入的一些小概念 (今日份学习记录)
在单例中(singleton)的对象不能通过常规的注入方法来注入一个多例(prototype)的对象 我们可以通过在单例的类中实现BeanFactoryAware接口,这个接口有一个方法:setBeanFactory,spring在创建单例对象的时候,会把BeanFactory进行注入,这样在单例中,我们可以通过BeanFactory.getBean 进行获取多例对象。...原创 2019-02-23 10:19:30 · 166 阅读 · 0 评论 -
constructor-arg与property的区别
constructor-arg:通过构造方法注入 property:是通过setter方法注入 constructor-arg 示例说明:代码:package cn.com.leadfar.spring;import java.io.File;import java.util.List;import org.springframework.beans....翻译 2019-02-23 11:21:47 · 2767 阅读 · 0 评论 -
单例模式和多例模式的区别 (2019-2-25)
原文章出自:http://www.cnblogs.com/zhangliang88/p/5388472.html http://cantellow.iteye.com/blog/838473 单例模式是所有的请求都用一个对象来处理,例如service、dao层的对象,通常都是单例的;而多例模式则是new一个新的对象来处...转载 2019-02-25 08:59:20 · 2527 阅读 · 0 评论