0
내 서버 (부두)가 특정 주소의 네트워크를 통해 액세스되기를 원합니다. 외부 주소를 사용하도록 부두 서버를 구성하려면 어떻게해야합니까 (예 : my_address_name.org). 때문에 기본적으로Java jetty 외부 주소
:
가 로컬 호스트에서 실행server = new Server(port);
WebAppContext context = new WebAppContext();
context.setResourceBase(app_path);
context.setDescriptor(app_path + "WEB-INF/web.xml");
context.setConfigurations(new Configuration[] {
new AnnotationConfiguration(), new WebXmlConfiguration(),
new WebInfConfiguration(), new TagLibConfiguration(),
new PlusConfiguration(), new MetaInfConfiguration(),
new FragmentConfiguration(), new EnvConfiguration() });
context.setContextPath(context_path);
context.setParentLoaderPriority(true);
server.setHandler(context);
try {
server.start();
server.join(); ...
...