spring启动gradle项目不起作用

ykejflvf  于 2021-06-21  发布在  Flink
关注(0)|答案(0)|浏览(288)

我有一个springbootgradle项目,它使用logback日志。我想让它支持flink,但flink使用的是log4j。当我开始这个项目的时候,它就一直这样。两者结合起来就不起作用了。

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-web'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    implementation 'org.slf4j:log4j-over-slf4j:1.7.25'
    implementation 'org.apache.kafka:kafka-clients:2.1.0'
    implementation 'org.apache.flink:flink-java:1.7.2'
    implementation 'org.apache.flink:flink-streaming-java_2.12:1.7.2'
    implementation 'org.apache.flink:flink-connector-kafka-0.10_2.12:1.7.2'
}
2019-04-03 11:40:20.788 [main] 
INFO com.example.server.flinkkafkademo03.FlinkKafkaDemo03Application [SpringApplication.java:679] - The following profiles are active: dev 
2019-04-03 11:40:23.798 [flink-akka.actor.default-dispatcher-5] 
INFO akka.event.slf4j.Slf4jLogger [Slf4jLogger.scala:92] - Slf4jLogger started 2019-04-03 11:40:23.879 [flink-metrics-2] 
INFO akka.event.slf4j.Slf4jLogger [Slf4jLogger.scala:92] - Slf4jLogger started 
WARNING: An illegal reflective access operation has occurred 
WARNING: Illegal reflective access by org.apache.flink.core.memory.HybridMemorySegment (file:/E:/Program%20Files/gradle-5.0/repository/caches/modules-2/files-2.1/org.apache.flink/flink-core/1.7.2/184443282d6269261e2783d5797d2aafbe88253/flink-core-1.7.2.jar) to field java.nio.Buffer.address 
WARNING: Please consider reporting this to the maintainers of org.apache.flink.core.memory.HybridMemorySegment 
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 
WARNING: All illegal access operations will be denied in a future release

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题