在您的控制器内,您可以使用来获取语言环境
RequestContextUtils。
import org.springframework.web.servlet.support.RequestContextUtils as RCU
然后解析请求的语言环境:
RCU.getLocale(request)

在您的控制器内,您可以使用来获取语言环境
RequestContextUtils。
import org.springframework.web.servlet.support.RequestContextUtils as RCU
然后解析请求的语言环境:
RCU.getLocale(request)