繁体   English   中英

使用Eclipse时,Swagger无法在jhipster中启动

[英]Swagger can't start in jhipster when using Eclipse

我正在使用jhipster应用程序。 到目前为止还不错,但是今天我有一个我无法解决的问题。

当我使用Eclipse时,我无法启动应用程序。 我想这是由于Swagger无法启动引起的。

看起来像这样:

    The Class-Path manifest attribute in C:\Users\twloszki\.m2\repository\org\liquibase\liquibase-core\3.5.5\liquibase-core-3.5.5.jar referenced one or more files that do not exist: file:/C:/Users/twloszki/.m2/repository/org/liquibase/liquibase-core/3.5.5/lib/snakeyaml-1.13.jar
13:22:12.567 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
13:22:12.567 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
13:22:12.567 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/C:/GSMR/ICOMS-web/target/classes/]

        ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
        ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
        ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝
  ██╗   ██║ ██╔═══██║    ██║    ██╔════╝   ╚═══██╗    ██║    ██╔═══╝   ██╔══██║
  ╚██████╔╝ ██║   ██║ ████████╗ ██║       ██████╔╝    ██║    ████████╗ ██║  ╚██╗
   ╚═════╝  ╚═╝   ╚═╝ ╚═══════╝ ╚═╝       ╚═════╝     ╚═╝    ╚═══════╝ ╚═╝   ╚═╝

:: JHipster 🤓  :: Running Spring Boot 1.5.14.RELEASE ::
:: http://www.jhipster.tech ::

2019-01-21 13:22:13.580  INFO 2492 --- [  restartedMain] com.App        : Starting App on PC
2019-01-21 13:22:13.580 DEBUG 2492 --- [  restartedMain] com.App        : Running with Spring Boot v1.5.14.RELEASE, Spring v4.3.18.RELEASE
2019-01-21 13:22:13.580  INFO 2492 --- [  restartedMain] com.App        : The following profiles are active: swagger,dev
2019-01-21 13:22:13.861 DEBUG 2492 --- [kground-preinit] org.jboss.logging                        : Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property
2019-01-21 13:22:16.660 DEBUG 2492 --- [  restartedMain] p.w.g.config.AsyncConfiguration          : Creating Async Task Executor
2019-01-21 13:22:17.347 DEBUG 2492 --- [  restartedMain] p.w.g.config.MetricsConfiguration        : Registering JVM gauges
2019-01-21 13:22:17.472 DEBUG 2492 --- [  restartedMain] p.w.g.config.MetricsConfiguration        : Monitoring the datasource
2019-01-21 13:22:17.472 DEBUG 2492 --- [  restartedMain] p.w.g.config.MetricsConfiguration        : Initializing Metrics JMX reporting
2019-01-21 13:22:18.421 DEBUG 2492 --- [  restartedMain] com.config.WebConfigurer  : Registering CORS filter
2019-01-21 13:22:18.625  INFO 2492 --- [  restartedMain] com.config.WebConfigurer  : Web application configuration, using profiles: swagger
2019-01-21 13:22:18.625 DEBUG 2492 --- [  restartedMain] com.config.WebConfigurer  : Initializing Metrics registries
2019-01-21 13:22:18.625 DEBUG 2492 --- [  restartedMain] com.config.WebConfigurer  : Registering Metrics Filter
2019-01-21 13:22:18.625 DEBUG 2492 --- [  restartedMain] com.config.WebConfigurer  : Registering Metrics Servlet
2019-01-21 13:22:18.625  INFO 2492 --- [  restartedMain] com.config.WebConfigurer  : Web application fully configured
2019-01-21 13:22:18.922 DEBUG 2492 --- [  restartedMain] p.w.g.config.DatabaseConfiguration       : Configuring Liquibase
2019-01-21 13:22:18.937  WARN 2492 --- [port-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase   : Starting Liquibase asynchronously, your database might not be ready at startup!
2019-01-21 13:22:23.527 DEBUG 2492 --- [  restartedMain] c.ehcache.core.Ehcache-usersByLogin      : Initialize successful.
2019-01-21 13:22:23.527 DEBUG 2492 --- [  restartedMain] c.ehcache.core.Ehcache-usersByEmail      : Initialize successful.
2019-01-21 13:22:23.543 DEBUG 2492 --- [  restartedMain] c.e.c.E.w.g.domain.DictionaryValue       : Initialize successful.
2019-01-21 13:22:23.543 DEBUG 2492 --- [  restartedMain] c.e.c.E.w.g.domain.DictionaryType        : Initialize successful.
2019-01-21 13:22:23.543 DEBUG 2492 --- [  restartedMain] c.e.c.E.domain.Line     : Initialize successful.
2019-01-21 13:22:23.543 DEBUG 2492 --- [  restartedMain] c.e.c.E.domain.Section  : Initialize successful.
2019-01-21 13:22:23.583 DEBUG 2492 --- [  restartedMain] c.e.c.E.domain.WorkCost     : Initialize successful.
2019-01-21 13:22:23.585 DEBUG 2492 --- [  restartedMain] c.e.c.E.domain.WorkAttachment        : Initialize successful.

下一步应该是:

2019-01-21 13:07:24.089 DEBUG 10764 --- [  restartedMain] i.g.j.c.apidoc.SwaggerConfiguration      : Starting Swagger
2019-01-21 13:07:24.096 DEBUG 10764 --- [  restartedMain] i.g.j.c.apidoc.SwaggerConfiguration      : Started Swagger in 6 ms

莫名其妙的招摇无法开始,什么也没有发生。

编辑:有趣的是,我可以在cmd中使用mvnw命令运行我的应用程序。

我找到了解决方案。 我试图以调试模式打开应用程序,但是当我运行它时,一切正常。 我删除了代码中的所有断点,这对我有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM