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)
|
||||
.build();
|
||||
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
|
||||
HttpServer httpServer = HttpServer.create();
|
||||
httpServer.host("localhost");
|
||||
httpServer.port(8080);
|
||||
HttpServer httpServer = HttpServer.create().host("localhost").port(8080);
|
||||
return httpServer.handle(adapter).bindNow();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue