springmvc 静态资源配置和国际化

版权声明:本文系作者授权发表,未经许可,不得转载。 https://blog.csdn.net/qq_32885621/article/details/85242306

1.处理springmvc静态资源只需要在xx-servlet.xml中加两个配置

2018-09-16_083512.png

2.springmvc的国际化

    第一步导入所需要的jstl.jar和stands.jar包

2018-09-16_083714.png

    第二步配置对应的配置属性文件(.properties),文件的名的命名规范:基名_地区_语言.properties

2018-09-16_083833.png

    2018-09-16_084926.png

    第三步配置好xxx-servlet.xml配置资源文件

2018-09-16_084107.png    第四步启用国际化

2018-09-16_085016.png

猜你喜欢

转载自blog.csdn.net/qq_32885621/article/details/85242306