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.

24 lines
771 B

5 years ago
package xyz.wbsite.action.screen;
5 years ago
5 years ago
import org.springframework.beans.factory.annotation.Autowired;
5 years ago
import org.springframework.beans.factory.annotation.Value;
5 years ago
import org.springframework.ui.Model;
5 years ago
import xyz.wbsite.frame.base.Screen;
import xyz.wbsite.module.conf.ent.NginxCtrl;
5 years ago
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
5 years ago
public class Home extends Screen {
5 years ago
@Autowired
private NginxCtrl nginxCtrl;
5 years ago
@Value("${mapping.default.port}")
private String serverPort;
5 years ago
@Override
public void exec(Model model, HttpServletRequest request, HttpServletResponse response) {
5 years ago
model.addAttribute("run", nginxCtrl.isRunning() ? "true" : "false");
5 years ago
model.addAttribute("serverPort", serverPort);
5 years ago
}
}

Powered by TurnKey Linux.