whycrzh
2021-01-28 c8332186836b3dfe1fbd32d7bec7cd29a57e1888
src/main/java/com/fgkj/controller/I18nController.java
@@ -5,6 +5,7 @@
import com.fgkj.dto.ServiceModel;
import com.fgkj.util.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@@ -16,7 +17,7 @@
@RequestMapping("i18n")
@RestController
@Api
@Api(tags = "i18n接口")
public class I18nController{
   // private String lanuage;
@@ -34,6 +35,7 @@
   
   //切换中英文环境
   @PutMapping("locale")
   @ApiOperation(notes = "",value="切换中英文环境")
   public boolean SetLocale(@RequestParam String lanuage){
      boolean res=false;
      Locale local = Locale.getDefault();