elastic-job 使用

2.1.5 版本

context-path配置

修改 context-path

com.dangdang.ddframe.job.restful.RestfulServer

1
2
3
4
5
private ServletContextHandler buildServletContextHandler() {
ServletContextHandler result = new ServletContextHandler(ServletContextHandler.SESSIONS);
result.setContextPath("/");
return result;
}

修改成

1
2
3
4
5
private ServletContextHandler buildServletContextHandler() {
ServletContextHandler result = new ServletContextHandler(ServletContextHandler.SESSIONS);
result.setContextPath("/elasticjob");
return result;
}

修改前端接口地址

把前端/api的地方改成api

默认中文

console/index.html

1
2
3
4
5
<div id="content" class="lang-en">
</div>
<!-- 修改成 -->
<div id="content" class="lang-zh">
</div>
  • 本文作者: forever杨
  • 本文链接: https://blog.yl-online.top/posts/33cc482c.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。如果文章内容对你有用,请记录到你的笔记中。本博客站点随时会停止服务,请不要收藏、转载!