Spring-MVCの散歩道 > 応用の森(総合テクニック編) > WebSocketを使った、リアルタイムCPU使用率推移グラフ
|
package jp.dip.arimodoki.cntl;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import jp.dip.arimodoki.common.CConst;
@Scope("prototype")
@Controller
public class WebSocketCPU implements CConst {
/**
* 初期画面
*/
@RequestMapping(value = "/websocketcpu")
public String websocketcpu() throws Exception {
return "websocketcpu";
}
}
|