Cannot find message resources under key org.apache.struts.action.MESSAGE

来源:互联网 发布:天猫国际官方直营知乎 编辑:程序博客网 时间:2024/06/05 22:45

这个异常是在练习使用struts1框架的标签库时遇到的!该语句表示的原因是:源配置文件未找到!一般也就是路径使用的不对,不过我在练习struts1框架中并没有看到加载配置文件的部分,既然是struts1框架,主要的还是struts-config.xml这个配置文件,没错,直接在这个里面编写路径就可以了,如下:

<struts-config>    <message-resources parameter="struts.action.ApplicationResources"></message-resources></struts-config>
0 0
原创粉丝点击