diff --git a/api/src/main/java/com/lktx/center/Main.java b/api/src/main/java/com/lktx/center/Main.java index f8d46b3..d4805ef 100644 --- a/api/src/main/java/com/lktx/center/Main.java +++ b/api/src/main/java/com/lktx/center/Main.java @@ -3,11 +3,12 @@ package com.lktx.center; import cn.hserver.core.boot.HServerApplication; import cn.hserver.core.boot.annotation.HServerBoot; -import cn.hserver.mvc.constants.WebConstConfig; +import cn.hserver.mvc.server.WebServer; @HServerBoot public class Main { public static void main(String[] args) { + WebServer.webPort(8981); HServerApplication.run(Main.class, args); } } \ No newline at end of file diff --git a/api/src/main/resources/app.yml b/api/src/main/resources/app.yml index 159e5e1..87d497e 100644 --- a/api/src/main/resources/app.yml +++ b/api/src/main/resources/app.yml @@ -1,5 +1,3 @@ -web: - port: 8981 oauth: client-id: 65013a3d89d14fab8ff3eb2c0f3981a3 client-secret: 22b5ce70d67f41b79b27cbedb57c976a