You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
502 B
19 lines
502 B
package com.epmet.lbtest.controller;
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
@RestController
|
|
@RequestMapping("lb")
|
|
public class LbController {
|
|
|
|
@GetMapping("test")
|
|
public String test(HttpServletRequest request) {
|
|
String localAddr = request.getServerName();
|
|
return localAddr;
|
|
}
|
|
|
|
}
|
|
|