創(chuàng)建demo
package com.merchen.hello_world.controller;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/res")
public class ResController {
@GetMapping("/test/{value}")
public String testController(@PathVariable("value")String name){
return name;
}
}
spring.application.name=hello_world
server.servlet.context-path=/hello
spring.thymeleaf.enabled=true
server.port=80 #例如生產(chǎn)是80,ip是localhost
配置遠(yuǎn)程端口
啟動(dòng)生產(chǎn)環(huán)境的jar包,命令
本地啟動(dòng)項(xiàng)目
文章來源:http://www.zghlxwxcb.cn/news/detail-858897.html
訪問本地(localhost:80相當(dāng)于遠(yuǎn)程),即可斷點(diǎn)調(diào)試
文章來源地址http://www.zghlxwxcb.cn/news/detail-858897.html
到了這里,關(guān)于Idea實(shí)現(xiàn)遠(yuǎn)程debug調(diào)試的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!