eclipse 创建maven项目时 报错 Unable to create project from archetype [org.apache.maven.archetypes:ma 你看看你maven项目默认的工作路径,不要是其他项目的路径下~~~我的就是在别的项目路径里,我改了以后就好了~~~ 2.a pom xml file already exists in the destination folder(一个POM的XML文件已存在于目标文件夹) 3.pom.xml 是Maven D…
Spring framework中的beans 1.概述 bean其实就是各个类实例化后的对象,即objects spring framework的IOC容器所管理的基本单元就是bean spring的IOC容器管理bean的实例化.依赖关系配置过程.bean组装过程(依据依赖关系进行组装) 使用spring的IOC容器管理beans,有三种配置beans之间的依赖关系的方法,分别是XML-based configuration.annotion-based configuration以及Jav…
问题:Java反射机制可以动态修改实例中final修饰的成员变量吗? 回答是分两种情况的. 1. 当final修饰的成员变量在定义的时候就初始化了值,那么java反射机制就已经不能动态修改它的值了. 2. 当final修饰的成员变量在定义的时候并没有初始化值的话,那么就还能通过java反射机制来动态修改它的值. 实验: 1. 当final修饰的成员变量在定义的时候就初始化了值 public Class Person { private final String name = "damon.hua…
Problem link: http://oj.leetcode.com/problems/linked-list-cycle/ We set two pointers: the faster pointer goes two steps each iteration, and the slower one goes one step. If the two pointers meet some time, it follows that there is a loop; otherwise,…