• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

light4j入门教程 light-4j web服务入门教程

JAVA相关 开心洋葱 2208次浏览 0个评论

light4j入门教程

介绍:

Light for Java,意味着轻量级,并以闪电般的速度来使用 Java 编程。网络有传闻比springboot快44倍,可以看下测试连接

环境:

light platform 1.5.x或1.6.x中的大多数组件都基于Java 8,而master 2.0.x则基于Java11的版本。

使用 :java -version  查看当前对应的jdk 版本,下载对应的代码

国内源码镜像下载地址:  https://gitee.com/light4j/light-4j.git ,不通版本可以通过切换tag更换版本。

这里的测试代码地址: https://gitee.com/light4j/api-simple-web-demo.git

安装:

git clone https://gitee.com/light4j/api-simple-web-demo.git
mvn clean package 
mvn clean install
java -jar <b>E:\api-simple-web-demo\target\api-simple-web-0.1.0.jar</b>

测试接口:

JSON endpoint:

http://localhost:8080/api/json

TEXT endpoint:

http://localhost:8080/api/text

WEB:

http://localhost:8080/

总结:

根据启动时间,运行速度,确实是比spirng boot 快多了,但是在代码编写效率上还有很大的提升空间。

light4j源码编译的时候,会出现编译错误,基本上是应为在生成doc文档的时候,缺少以来可以使用下面脚本直接跳过

mvn clean install  -Dmaven.javadoc.skip=true  -Dmaven.test.skip=true

mvn clean package  -Dmaven.javadoc.skip=true  -Dmaven.test.skip=true

 

执行结果:

E:\api-simple-web-demo>mvn clean install
[INFO] Scanning for projects…
[INFO]
[INFO] ——————–< com.networknt:api-simple-web >——————–
[INFO] Building api-simple-web 0.1.0
[INFO] ——————————–[ jar ]———————————
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ api-simple-web —
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ api-simple-web —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 11 resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ api-simple-web —
[INFO] Changes detected – recompiling the module!
[INFO] Compiling 4 source files to E:\api-simple-web-demo\target\classes
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ api-simple-web —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\api-simple-web-demo\src\test\resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ api-simple-web —
[INFO] No sources to compile
[INFO]
[INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ api-simple-web —
[INFO] No tests to run.
[INFO]
[INFO] — maven-jar-plugin:2.6:jar (default-jar) @ api-simple-web —
[INFO] Building jar: E:\api-simple-web-demo\target\api-simple-web-0.1.0.jar
[INFO]
[INFO] — maven-shade-plugin:2.4.3:shade (default) @ api-simple-web —
[INFO] Including com.networknt:config:jar:1.6.30 in the shaded jar.
[INFO] Including com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.4 in the shaded jar.
[INFO] Including org.slf4j:slf4j-api:jar:1.7.25 in the shaded jar.
[INFO] Including org.owasp.encoder:encoder:jar:1.2.1 in the shaded jar.
[INFO] Including org.yaml:snakeyaml:jar:1.26 in the shaded jar.
[INFO] Including com.networknt:decryptor:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:utility:jar:1.6.30 in the shaded jar.
[INFO] Including commons-codec:commons-codec:jar:1.11 in the shaded jar.
[INFO] Including com.networknt:security:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:handler:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:common:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:status:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:client:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:monad-result:jar:1.6.30 in the shaded jar.
[INFO] Including org.bitbucket.b_c:jose4j:jar:0.6.3 in the shaded jar.
[INFO] Including com.github.ben-manes.caffeine:caffeine:jar:2.6.2 in the shaded jar.
[INFO] Including com.networknt:server:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:audit:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:mask:jar:1.6.30 in the shaded jar.
[INFO] Including com.jayway.jsonpath:json-path:jar:2.4.0 in the shaded jar.
[INFO] Including com.networknt:info:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:body:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:registry:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:switcher:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:consul:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:zookeeper:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:balance:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:cluster:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:service:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:exception:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:traceability:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:http-string:jar:1.6.30 in the shaded jar.
[INFO] Including com.networknt:correlation:jar:1.6.30 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.12.1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.12.1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.12.1 in the shaded jar.
[INFO] Including ch.qos.logback:logback-classic:jar:1.2.3 in the shaded jar.
[INFO] Including ch.qos.logback:logback-core:jar:1.2.3 in the shaded jar.
[INFO] Including io.undertow:undertow-core:jar:2.2.4.Final in the shaded jar.
[INFO] Including org.jboss.logging:jboss-logging:jar:3.4.1.Final in the shaded jar.
[INFO] Including org.jboss.xnio:xnio-api:jar:3.8.0.Final in the shaded jar.
[INFO] Including org.wildfly.common:wildfly-common:jar:1.5.2.Final in the shaded jar.
[INFO] Including org.wildfly.client:wildfly-client-config:jar:1.0.1.Final in the shaded jar.
[INFO] Including org.jboss.xnio:xnio-nio:jar:3.8.0.Final in the shaded jar.
[INFO] Including org.jboss.threads:jboss-threads:jar:3.1.0.Final in the shaded jar.
[WARNING] jackson-core-2.12.1.jar, jackson-datatype-jsr310-2.10.4.jar, jackson-annotations-2.12.1.jar, jackson-databind-2.12.1.jar define 1 overlapping classes:
[WARNING] – module-info
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/
[INFO] Replacing original artifact with shaded artifact.
[INFO] Replacing E:\api-simple-web-demo\target\api-simple-web-0.1.0.jar with E:\api-simple-web-demo\target\api-simple-web-0.1.0-shaded.jar
[INFO] Dependency-reduced POM written at: E:\api-simple-web-demo\dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at: E:\api-simple-web-demo\dependency-reduced-pom.xml
[INFO]
[INFO] — maven-install-plugin:2.4:install (default-install) @ api-simple-web —
[INFO] Installing E:\api-simple-web-demo\target\api-simple-web-0.1.0.jar to C:\Users\onion\.m2\repository\com\networknt\api-simple-web\0.1.0\api-simple-web-0.1.0.jar
[INFO] Installing E:\api-simple-web-demo\dependency-reduced-pom.xml to C:\Users\onion\.m2\repository\com\networknt\api-simple-web\0.1.0\api-simple-web-0.1.0.pom
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 5.846 s
[INFO] Finished at: 2021-03-23T16:15:31+08:00
[INFO] ————————————————————————

 

E:\api-simple-web-demo>java -jar E:\api-simple-web-demo\target\api-simple-web-0.1.0.jar
16:17:19,476 |-INFO in ch.qos.logback.classic.LoggerContext[default] – Could NOT find resource [logback-test.xml]
16:17:19,476 |-INFO in ch.qos.logback.classic.LoggerContext[default] – Could NOT find resource [logback.groovy]
16:17:19,476 |-INFO in ch.qos.logback.classic.LoggerContext[default] – Found resource [logback.xml] at [jar:file:/E:/api-simple-web-demo/target/api-simple-web-0.1.0.jar!/logback.xml]
16:17:19,492 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@282ba1e – URL [jar:file:/E:/api-simple-web-demo/target/api-simple-web-0.1.0.jar!/logback.xml] is not of type file
16:17:19,540 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction – debug attribute not set
16:17:19,555 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:17:19,558 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – Naming appender as [stdout]
16:17:19,558 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA – Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:17:19,600 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – About to instantiate appender of type [ch.qos.logback.core.FileAppender]
16:17:19,603 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – Naming appender as [log]
16:17:19,605 |-WARN in ch.qos.logback.core.FileAppender[log] – This appender no longer admits a layout as a sub-component, set an encoder instead.
16:17:19,605 |-WARN in ch.qos.logback.core.FileAppender[log] – To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
16:17:19,605 |-WARN in ch.qos.logback.core.FileAppender[log] – See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
16:17:19,605 |-INFO in ch.qos.logback.core.FileAppender[log] – File property is set to [target/test.log]
16:17:19,608 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
16:17:19,608 |-INFO in ch.qos.logback.core.joran.action.AppenderAction – Naming appender as [audit]
16:17:19,609 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA – Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:17:19,610 |-WARN in ch.qos.logback.classic.encoder.PatternLayoutEncoder@13b6d03 – As of version 1.2.0 “immediateFlush” property should be set within the enclosing Appender.
16:17:19,610 |-WARN in ch.qos.logback.classic.encoder.PatternLayoutEncoder@13b6d03 – Please move “immediateFlush” property into the enclosing appender.
16:17:19,610 |-WARN in ch.qos.logback.classic.encoder.PatternLayoutEncoder@13b6d03 – Setting the “immediateFlush” property of the enclosing appender to true
16:17:19,616 |-INFO in ch.qos.logback.core.rolling.FixedWindowRollingPolicy@f5f2bb7 – Will use zip compression
16:17:19,618 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[audit] – Active log file name: target/audit.log
16:17:19,618 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[audit] – File property is set to [target/audit.log]
16:17:19,619 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction – Setting level of ROOT logger to ERROR
16:17:19,619 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction – Attaching appender named [stdout] to Logger[ROOT]
16:17:19,620 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction – Setting level of logger [com.networknt] to TRACE
16:17:19,620 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction – Attaching appender named [log] to Logger[com.networknt]
16:17:19,620 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction – Setting level of logger [Audit] to TRACE
16:17:19,620 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction – Setting additivity of logger [Audit] to false
16:17:19,620 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction – Attaching appender named [audit] to Logger[Audit]
16:17:19,620 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction – End of configuration.
16:17:19,621 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@73035e27 – Registering current configuration as safe fallback point

16:17:19.682 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for config.yml in
16:17:19.684 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file config.yml
16:17:19.687 [main] INFO com.networknt.config.Config – Config loaded from default folder for config.yml
16:17:19.706 [main] DEBUG com.networknt.config.Config – loaded config from file config.yml
16:17:19.708 [main] DEBUG com.networknt.config.Config – found decryptorClass=com.networknt.decrypt.AESDecryptor
16:17:19.709 [main] DEBUG com.networknt.config.Config – found configLoaderClass=null
16:17:19.714 [main] DEBUG c.n.config.yml.DecryptConstructor – creating decryptor com.networknt.decrypt.AESDecryptor
16:17:20.424 [main] INFO com.networknt.config.Config – Trying to load server with extension yaml, yml or json by using default loading method.
16:17:20.425 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for server.yml in
16:17:20.427 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file server.yml
16:17:20.433 [main] INFO com.networknt.config.Config – Config loaded from default folder for server.yml
16:17:20.487 [main] INFO com.networknt.server.Server – server starts
16:17:20.488 [main] INFO com.networknt.config.Config – Trying to load startup with extension yaml, yml or json by using default loading method.
16:17:20.489 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.yml in
16:17:20.490 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.yml
16:17:20.493 [main] INFO com.networknt.config.Config – Unable to load config startup.yml. Looking for the same file name with extension yaml…
16:17:20.494 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.yaml in
16:17:20.495 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.yaml
16:17:20.495 [main] INFO com.networknt.config.Config – Unable to load config startup.yaml. Looking for the same file name with extension json…
16:17:20.496 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.json in
16:17:20.497 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.json
Unable to load config ‘startup’ with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.
16:17:20.504 [main] INFO com.networknt.config.Config – Trying to load startup with extension yaml, yml or json by using default loading method.
16:17:20.504 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.yml in
16:17:20.505 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.yml
16:17:20.505 [main] INFO com.networknt.config.Config – Unable to load config startup.yml. Looking for the same file name with extension yaml…
16:17:20.506 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.yaml in
16:17:20.506 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.yaml
16:17:20.506 [main] INFO com.networknt.config.Config – Unable to load config startup.yaml. Looking for the same file name with extension json…
16:17:20.507 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for startup.json in
16:17:20.507 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file startup.json
Unable to load config ‘startup’ with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.
16:17:20.523 [main] INFO com.networknt.config.Config – Trying to load client with extension yaml, yml or json by using default loading method.
16:17:20.524 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for client.yml in
16:17:20.524 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file client.yml
16:17:20.528 [main] INFO com.networknt.config.Config – Config loaded from default folder for client.yml
16:17:20.540 [main] INFO com.networknt.config.Config – Trying to load client with extension yaml, yml or json by using default loading method.
16:17:20.540 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for client.yml in
16:17:20.542 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file client.yml
16:17:20.546 [main] INFO com.networknt.config.Config – Config loaded from default folder for client.yml
16:17:20.552 [main] INFO com.networknt.config.Config – Trying to load secret with extension yaml, yml or json by using default loading method.
16:17:20.552 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for secret.yml in
16:17:20.553 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file secret.yml
16:17:20.556 [main] INFO com.networknt.config.Config – Config loaded from default folder for secret.yml
16:17:21.035 [main] WARN c.n.server.DefaultConfigLoader – Warning! light-env is not provided; defaulting to dev
16:17:21.035 [main] WARN c.n.server.DefaultConfigLoader – Warning! light-4j-config-dir is not provided; defaulting to src/main/resources/config
16:17:21.039 [main] WARN c.n.server.DefaultConfigLoader – Warning! light-config-server-uri is not provided; using local configs
16:17:21.043 [main] INFO com.networknt.config.Config – Trying to load app-status with extension yaml, yml or json by using default loading method.
16:17:21.044 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for app-status.yml in
16:17:21.044 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file app-status.yml
16:17:21.045 [main] INFO com.networknt.config.Config – Unable to load config app-status.yml. Looking for the same file name with extension yaml…
16:17:21.045 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for app-status.yaml in
16:17:21.047 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file app-status.yaml
16:17:21.050 [main] INFO com.networknt.config.Config – Unable to load config app-status.yaml. Looking for the same file name with extension json…
16:17:21.051 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for app-status.json in
16:17:21.051 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file app-status.json
Unable to load config ‘app-status’ with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.
16:17:21.054 [main] INFO com.networknt.config.Config – Trying to load service with extension yaml, yml or json by using default loading method.
16:17:21.054 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for service.yml in
16:17:21.055 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file service.yml
16:17:21.056 [main] INFO com.networknt.config.Config – Config loaded from default folder for service.yml
16:17:21.069 [main] INFO com.networknt.config.Config – Trying to load webserver with extension yaml, yml or json by using default loading method.
16:17:21.070 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for webserver.yml in
16:17:21.072 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file webserver.yml
16:17:21.076 [main] INFO com.networknt.config.Config – Config loaded from default folder for webserver.yml
16:17:21.090 [main] INFO com.networknt.config.Config – Trying to load handler with extension yaml, yml or json by using default loading method.
16:17:21.091 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.yml in
16:17:21.091 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.yml
16:17:21.092 [main] INFO com.networknt.config.Config – Unable to load config handler.yml. Looking for the same file name with extension yaml…
16:17:21.093 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.yaml in
16:17:21.093 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.yaml
16:17:21.094 [main] INFO com.networknt.config.Config – Unable to load config handler.yaml. Looking for the same file name with extension json…
16:17:21.095 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.json in
16:17:21.096 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.json
Unable to load config ‘handler’ with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.
16:17:21.102 [main] INFO com.networknt.config.Config – Trying to load exception with extension yaml, yml or json by using default loading method.
16:17:21.103 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for exception.yml in
16:17:21.103 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file exception.yml
16:17:21.104 [main] INFO com.networknt.config.Config – Config loaded from default folder for exception.yml
16:17:21.113 [main] INFO com.networknt.config.Config – Trying to load traceability with extension yaml, yml or json by using default loading method.
16:17:21.117 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for traceability.yml in
16:17:21.118 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file traceability.yml
16:17:21.118 [main] INFO com.networknt.config.Config – Config loaded from default folder for traceability.yml
16:17:21.124 [main] INFO com.networknt.config.Config – Trying to load correlation with extension yaml, yml or json by using default loading method.
16:17:21.124 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for correlation.yml in
16:17:21.125 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file correlation.yml
16:17:21.125 [main] INFO com.networknt.config.Config – Config loaded from default folder for correlation.yml
16:17:21.130 [main] INFO c.n.correlation.CorrelationHandler – CorrelationHandler is loaded.
16:17:21.134 [main] INFO com.networknt.config.Config – Trying to load handler with extension yaml, yml or json by using default loading method.
16:17:21.135 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.yml in
16:17:21.138 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.yml
16:17:21.139 [main] INFO com.networknt.config.Config – Unable to load config handler.yml. Looking for the same file name with extension yaml…
16:17:21.143 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.yaml in
16:17:21.143 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.yaml
16:17:21.143 [main] INFO com.networknt.config.Config – Unable to load config handler.yaml. Looking for the same file name with extension json…
16:17:21.144 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for handler.json in
16:17:21.144 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file handler.json
Unable to load config ‘handler’ with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.
16:17:21.201 [main] INFO com.networknt.server.Server – Plugin: com.networknt.correlation.CorrelationHandler
16:17:21.202 [main] INFO com.networknt.config.Config – Trying to load correlation with extension yaml, yml or json by using default loading method.
16:17:21.203 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for correlation.yml in
16:17:21.206 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file correlation.yml
16:17:21.207 [main] INFO com.networknt.config.Config – Config loaded from default folder for correlation.yml
16:17:21.208 [main] INFO com.networknt.server.Server – Plugin: com.networknt.traceability.TraceabilityHandler
16:17:21.208 [main] INFO com.networknt.config.Config – Trying to load traceability with extension yaml, yml or json by using default loading method.
16:17:21.209 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for traceability.yml in
16:17:21.209 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file traceability.yml
16:17:21.210 [main] INFO com.networknt.config.Config – Config loaded from default folder for traceability.yml
16:17:21.211 [main] INFO com.networknt.server.Server – Plugin: com.networknt.exception.ExceptionHandler
16:17:21.215 [main] INFO com.networknt.config.Config – Trying to load exception with extension yaml, yml or json by using default loading method.
16:17:21.216 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for exception.yml in
16:17:21.216 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file exception.yml
16:17:21.216 [main] INFO com.networknt.config.Config – Config loaded from default folder for exception.yml
16:17:21.221 [main] INFO com.networknt.config.Config – Trying to load server with extension yaml, yml or json by using default loading method.
16:17:21.222 [main] INFO com.networknt.config.Config – Unable to load config from externalized folder for server.yml in
16:17:21.222 [main] INFO com.networknt.config.Config – Trying to load config from classpath directory for file server.yml
16:17:21.223 [main] INFO com.networknt.config.Config – Config loaded from default folder for server.yml
HOST IP null
Http Server started on ip:0.0.0.0 Port:8080
16:17:21.270 [main] INFO com.networknt.server.Server – Http Server started on ip:0.0.0.0 Port:8080
Https port disabled.
16:17:21.272 [main] INFO com.networknt.server.Server – Https port disabled.
16:17:22.250 [Thread-1] INFO com.networknt.server.Server – Starting graceful shutdown.
16:17:22.252 [Thread-1] INFO com.networknt.server.Server – Graceful shutdown complete.
16:17:22.284 [Thread-1] INFO com.networknt.server.Server – Cleaning up before server shutdown


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明light4j入门教程 light-4j web服务入门教程
喜欢 (0)

您必须 登录 才能发表评论!

加载中……