Spring Webflux在启动期间冻结

时间:2019-07-30 19:17:25

标签: spring spring-boot spring-webflux

我有一个具有此类依赖项的spring boot应用程序:

    dependencies {
    implementation project(':selenium')
    implementation 'org.springframework.boot:spring-boot-starter-webflux'
    implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
    implementation 'org.jetbrains.kotlin:kotlin-reflect'
    implementation 'org.apache.commons:commons-lang3:3.9'
    implementation 'com.github.ben-manes.caffeine:caffeine:2.7.0'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    testImplementation 'io.projectreactor:reactor-test'
    compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
}

我有这样的主要班级

package com.my_app

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
open class MyApp

fun main(args: Array<String>) {
    runApplication<MyApp>(*args)
}

,当我启动我的应用程序时,它会打印活动配置文件,而不是卡住并冻结,并且我无法访问我的服务。这是日志:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.6.RELEASE)

21:12:25.714 [main] INFO  com.my_app.MyAppKt - Starting MyAppKt on laptop with PID 22298 (/home/****/build/classes/kotlin/main started by **** in /home/******/my_app)
21:12:25.718 [main] INFO  com.my_app.MyAppKt - The following profiles are active: dev

它保持该状态。这种奇怪行为的原因是什么?

0 个答案:

没有答案