• 大小: 31KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-06
  • 语言: 其他
  • 标签: 国际化  多语言  

资源简介

代码的详细描述详见博客 ssm框架上实现国际化/多语言

资源截图

代码片段和文件信息

package com.soon.multi.ctrl;

import java.io.UnsupportedEncodingException;
import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.i18n.SessionLocaleResolver;

/**
 *@descriptions:
 *@author:xfh
 *createTime:2018-9-13上午11:20:57
 */
@Controller
@RequestMapping(“/hello“)
public class HelloCtrl {

@RequestMapping(value=“/international“ method = {RequestMethod.GET})
    public String 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-18 11:20  multi-language-demo\
     文件        1004  2018-09-18 11:20  multi-language-demo\.classpath
     文件        1228  2018-09-18 11:20  multi-language-demo\.project
     目录           0  2018-09-18 11:20  multi-language-demo\.settings\
     文件         508  2018-09-18 11:20  multi-language-demo\.settings\.jsdtscope
     文件         230  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.m2e.core.prefs
     文件         787  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.wst.common.component
     文件         252  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-09-18 11:20  multi-language-demo\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        6583  2018-09-18 11:20  multi-language-demo\pom.xml
     目录           0  2018-09-18 11:20  multi-language-demo\src\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\ctrl\
     文件        1813  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\ctrl\HelloCtrl.java
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\dao\
     文件         238  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\dao\StuDao.java
     文件         389  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\dao\StuDaoMapper.xml
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\domain\
     文件         854  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\domain\Student.java
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\service\
     文件         245  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\service\StuService.java
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\service\impl\
     文件         613  2018-09-18 11:20  multi-language-demo\src\main\java\com\soon\multi\service\impl\StuServiceImpl.java
     目录           0  2018-09-18 11:20  multi-language-demo\src\main\resources\
............此处省略44个文件信息

评论

共有 条评论