标签:ack frame image 文件中 nbsp mic pac setname 图片
拓展方式注入分为两种
分别是:
xmlns:p="http://www.springframework.org/schema/p"
xmlns:c="http://www.springframework.org/schema/c"
把它们相应的添加到bean.xml文件中
1 package com.stewart.pojo; 2 3 public class User { 4 public User() { 5 } 6 private String name; 7 private int age; 8 9 public User(String name, int age) { 10 this.name = name; 11 this.age = age; 12 } 13 14 15 16 public String getName() { 17 return name; 18 } 19 20 public void setName(String name) { 21 this.name = name; 22 } 23 24 public int getAge() { 25 return age; 26 } 27 28 public void setAge(int age) { 29 this.age = age; 30 } 31 32 @Override 33 public String toString() { 34 return "User{" + 35 "name=‘" + name + ‘\‘‘ + 36 ", age=" + age + 37 ‘}‘; 38 } 39 }
标签:ack frame image 文件中 nbsp mic pac setname 图片
原文地址:https://www.cnblogs.com/-stewart/p/12507715.html