我有一个Controller类,其中包含以下两种查找医生的方法(上下文已更改)。获取 质量分配:两种方法上的不安全的活页夹配置(API滥用,结构化)错误。
@Controller
@RequestMapping(value = "/findDocSearch")
public class Controller {
@Autowired
private IFindDocService findDocService;
@RequestMapping(value = "/byName", method = RequestMethod.GET)
@ResponseBody
public List<FindDocDTO> findDocByName(FindDocBean bean) {
return findDocService.retrieveDocByName(bean.getName());
}
@RequestMapping(value = "/byLoc", method = RequestMethod.GET)
@ResponseBody
public List<FindDocDTO> findDocByLocation(FindDocBean bean) {
return findDocService.retrieveDocByZipCode(bean.getZipcode(),
bean.getDistance());
}
}
Run Code Online (Sandbox Code Playgroud)
我的豆是:
public class FindDocBean implements Serializable {
private static final long serialVersionUID = -1212xxxL;
private String name;
private String zipcode;
private int distance;
@Override
public String toString() {
return String.format("FindDocBean[name: %s, …Run Code Online (Sandbox Code Playgroud) 我现有的詹金斯主从连接中断了。我尝试通过 scp 命令建立连接。
在主人上:
scp ~/ .ssh/id_rsa.pub jenkins@<my_slave_machine>:/tmp
Run Code Online (Sandbox Code Playgroud)
在奴隶上:
• ssh-keygen –b 2048 –t rsa
• Press enter for " Enter file in which to save the key (/home/jenkins/.ssh/id_rsa) : "
• Press enter for " Enter passphrase (empty for no passphrase):"
• Press enter for " Enter same passphrase again:"
• cd .ssh/
• touch authorized_keys
• chmod 600 authorized_keys
• cat /tmp/id_rsa.pub >> authorized_keys
Run Code Online (Sandbox Code Playgroud)
尝试从 UI 连接后,出现以下错误。
[12/05/16 07:53:48] [SSH] Opening SSH connection to <my_slave_machine>:22.
[12/05/16 07:53:49] [SSH] …Run Code Online (Sandbox Code Playgroud)