这一章节我们来讨论一下过滤器<context:exclude-filter/>的使用。
1.domain
Person接口:
package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_21;
public interface Person {
}
拳击手类:
package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_21;
import org.springframework.beans.factory.annotation.Value;
public class Fighter implements Person {
@Value("mike")
private String name = "";
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
厨师类:
package com.raylee.my_new_spring.my_new_spring.ch02.topic_1_21;
import org.springframework.beans.factory.annotation.Value;
public class Chief implements Person {
@Value("jack")
private String name = "";
public Strin