修复读配置文件无法转int问题

This commit is contained in:
LuoYe_MyWork 2020-09-22 15:20:09 +08:00
parent 7d7b6e9c55
commit a6fd8bbde7

View File

@ -32,7 +32,7 @@ public class AdminController {
RedisUtil redisUtil;
@Value("user.admin.githubId")
int adminGithubId;
String adminGithubId;
/**
* 测试队列
@ -42,7 +42,7 @@ public class AdminController {
*/
@GetMapping("/send")
public void send() {
Task.sendTaskOutlookMQ(adminGithubId);
Task.sendTaskOutlookMQ(Integer.valueOf(adminGithubId) );
}
/**