摘要:
1 package SpringGenericDi; 2 3 import org.springframework.stereotype.Repository; 4 5 6 public class BaseRepository<T> { 7 8 9 } 1 package SpringGenericDi; 2 3 import org.springframework.beans.factory. 阅读全文
摘要:
1 package SpringAnnotation; 2 3 import org.springframework.stereotype.Component; 4 5 @Component("testObject") 6 public class TestObject { 7 8 } 1 package SpringAnnotation.service; 2 3 import SpringAnn 阅读全文
摘要:
package SpringProperties; import org.springframework.context.support.ClassPathXmlApplicationContext; import javax.sql.DataSource; impo... 阅读全文
摘要:
1 package SpringBeansCycle; 2 3 public class Car { 4 private String brand; 5 6 public Car() { 7 System.out.println("我是一个构造器"); 8 } 9 10 public void init() { 11 System.out.println("this is a init!"); 1 阅读全文
摘要:
1 2 5 6 7 9 11 1 package SpringBeansRelationship; 2 3 public class Person { 4 private String name; 5 private int age; 6 private String adress; 7 8 ... 阅读全文
摘要:
1 public class Address { 2 private String city; 3 private String street; 4 5 public String getCity() { 6 return city; 7 } 8 9 public void setCity(String city) {... 阅读全文
摘要:
1 public class Person { 2 private String name; 3 private int age; 4 5 public String getName() { 6 return name; 7 } 8 9 public void setName(String name) { 10 ... 阅读全文
摘要:
1 package SpringBeanDeploy; 2 3 public class Student { 4 private String name; 5 private int age; 6 private String sex; 7 8 public Student(String name, int age) { 9 this.name = name; 10 this.age = age; 阅读全文
摘要:
记录一下自己Spring的学习历程 阅读全文