Java-2136 Correctly configure netty server
This commit is contained in:
parent
27aa7c4cad
commit
5121313f65
@ -28,9 +28,7 @@ public class SpringSecurity5Application {
|
|||||||
HttpHandler handler = WebHttpHandlerBuilder.applicationContext(context)
|
HttpHandler handler = WebHttpHandlerBuilder.applicationContext(context)
|
||||||
.build();
|
.build();
|
||||||
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
|
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
|
||||||
HttpServer httpServer = HttpServer.create();
|
HttpServer httpServer = HttpServer.create().host("localhost").port(8080);
|
||||||
httpServer.host("localhost");
|
|
||||||
httpServer.port(8080);
|
|
||||||
return httpServer.handle(adapter).bindNow();
|
return httpServer.handle(adapter).bindNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user