关键是applicationContext.xml和 and spring-servlet.xml中定义的bean是在不同的container中存在的,彼此不能直接访问。
controller需要在定义controller的xml中声明所用的prperties文件:
关键是applicationContext.xml和 and spring-servlet.xml中定义的bean是在不同的container中存在的,彼此不能直接访问。
controller需要在定义controller的xml中声明所用的prperties文件: