共 29 篇文章 |
|
spring 事务不起效。/** * note:need add throw RuntimeException */ @Transactional @Override public int updateAgeNonException() throws Exception { try { Map<String,Integer> map = new HashMap<String,Integer>();homeDao.updateAge(map);-- prevented Service injected twice --> <context:exclude-filter type=&qu... 阅62 转0 评0 公众公开 17-04-24 13:49 |
阅22 转0 评0 公众公开 17-03-24 17:39 |
丢失maven denpendency<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"... 阅280 转0 评0 公众公开 17-03-23 21:20 |
本地jar<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>1.1.1</version> <scope>system</scope> <!--本地jar的路径,相对或者绝对都可以--> <systemPath>path/to/yourLocalJ... 阅41 转0 评0 公众公开 17-03-02 17:51 |
阅38 转0 评0 公众公开 17-03-02 14:22 |
在类图中一共包含了以下几种模型元素,分别是:类(Class)、接口(Interface)、依赖(Dependency)关系、泛化(Generalization)关系、关联(Association)关系、聚合关系(Aggregation)、组合关系(Composition)和实现(Realization)关系。依赖关系是指两个或多个类之间的依存关系,如植物类依赖于土壤类。组合关系是类之间一种整体与部... 阅102 转2 评0 公众公开 17-02-05 09:37 |
阅41 转0 评0 公众公开 16-12-01 16:28 |
阅62 转1 评0 公众公开 16-12-01 16:25 |
Function()构造函数每次执行时都会解析函数主体,并创建一个新的函数对象,所以当在一个循环或频繁执行的函数中调用Function()构造函数效率是非常低的。而函数字面量却不是每次遇到都会重新编译的,用Function()构造函数创建一个函数时并不遵循典型的作用域,它一直把它当作是顶级函数来执行。 阅55 转0 评0 公众公开 16-12-01 14:19 |
public BeanDefinition parse(Element element, ParserContext parserContext) { Object source = parserContext.extractSource(element);public static void registerDefaultComponents(ParserContext parserContext, Object source) { registerBeanNameUrlHandlerMapping(parserContext, source); 阅48 转0 评0 公众公开 16-11-11 17:13 |