6.资源限流
6.1.修改程序
6.1.1.在Controller中增加下列代码
@Autowired
private TestService testService;
@RequestMapping("/callService")
public String callService(){
return testService.testMethod();
}
6.1.2.增加service接口及接口实现类
package com.yuan.scasentineldashboard.service;
public interface TestService {
String testMethod();
}
package com.yuan.scasentineldashboard.service.impl;
import com.yuan.scasentineldashboard.service.TestService;
import org