File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
avaje-jex/src/main/java/io/avaje/jex Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ State create(BeanScope beanScope) {
2020 jex .configureWith (beanScope );
2121
2222 JexConfig config = jex .config ();
23- int port = config .port ();
24- config .port (Config .getInt ("server.port " , port ));
25-
23+ config . port ( Config . getInt ( "server.port" , config .port ()) );
24+ config .contextPath (Config .get ("server.context.path " , config . contextPath () ));
25+ config . host ( Config . get ( "server.context.host" , config . host ()));
2626 jex .lifecycle ().onShutdown (beanScope ::close );
2727 return new State (jex .start ());
2828 }
Original file line number Diff line number Diff line change 22
33import java .util .Map ;
44import java .util .concurrent .Executor ;
5+ import java .util .concurrent .Executors ;
56import java .util .function .Consumer ;
67
78import com .sun .net .httpserver .HttpsConfigurator ;
@@ -48,8 +49,7 @@ public sealed interface JexConfig permits DJexConfig {
4849 JexConfig disableSpiPlugins ();
4950
5051 /**
51- * Executor for serving requests. Defaults to a {@link
52- * Executors#newVirtualThreadPerTaskExecutor()}
52+ * Executor for serving requests. Defaults to a {@link Executors#newVirtualThreadPerTaskExecutor()}
5353 */
5454 Executor executor ();
5555
@@ -70,7 +70,7 @@ public sealed interface JexConfig permits DJexConfig {
7070 */
7171 JexConfig health (boolean health );
7272
73- /** Returns the configured host. (Defaults to localhost if not set) */
73+ /** Returns the configured host. */
7474 String host ();
7575
7676 /**
You can’t perform that action at this time.
0 commit comments