给该普通类添加@Component注解。创建该普通类的自己的静态属性。使用@Autowried注解引用dao层的接口。创建init方法,并添加@PostConstruct注解,被@PostConstruct修饰的方法会在服务器加载Servlet的时候运行,并且只会被服务器调用一次,类似于Serclet的inti()方法。被@PostConstruct修饰的方法会在构造函数之后,init()方法之前运行。@Componentpublic class NewYDPYDecoder extends .