This commit is contained in:
Lixin 2024-11-29 23:56:29 +08:00
parent d0eff2fe6b
commit 467d785660
3 changed files with 30 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class SysLoginService
public String login(String username, String password, String code, String uuid)
{
// 验证码校验
validateCaptcha(username, code, uuid);
//validateCaptcha(username, code, uuid);
// 登录前置校验
loginPreCheck(username, password);
// 用户验证

View File

@ -2,6 +2,8 @@ package com.ruoyi.system.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.annotation.Anonymous;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@ -37,7 +39,8 @@ public class DataController extends BaseController
/**
* 查询qiangdan列表
*/
@PreAuthorize("@ss.hasPermi('system:data:list')")
//@PreAuthorize("@ss.hasPermi('system:data:list')")
@Anonymous
@GetMapping("/list")
public TableDataInfo list(Data data)
{

View File

@ -0,0 +1,25 @@
package com.ruoyi.system.controller;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.web.client.RestTemplate;
import java.nio.charset.Charset;
@Configuration
public class RestTemplateConfiguration {
//
// @Bean
// public RestTemplate restTemplate(){
// RestTemplate restTemplate = new RestTemplate();
//// 设置中文乱码问题方式一
// restTemplate.getMessageConverters().add(1,new StringHttpMessageConverter(Charset.forName("UTF-8")));
// // 设置中文乱码问题方式二
// // restTemplate.getMessageConverters().set(1,new StringHttpMessageConverter(StandardCharsets.UTF_8)); // 支持中文编码
//// return new RestTemplate();
// return restTemplate;
// }
}