1.直接上图
切换Accept-Language的值时,发现无法正常切换成对应的语言.
http请求头的下划线是非法字符,因此输入en_US是无效的.应该输入en-US.
en-US能够正确匹配到多语言配置文件的en_US文件
2.组件库代码本身有问题导致的多语言信息没有正常返回
来看这个代码
throw new ServiceException(PhotoResultCode.PLEASE_LOG_IN_FIRST);
//ServiceException是gov-mo-operation-api-common-0.1.0-SNAPSHOT.jar包中的类,内容如下:
public class ServiceException extends ErrorCodeException {
public ServiceException(int code) {
super(String.