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

This commit is contained in:
LuoYe_MyWork 2020-09-22 15:20:09 +08:00
parent c977e4e016
commit 18d4af6043

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) );
}
/**