Spring Boot:我有一个kafka代理,它在应用程序中监听一个主题。我有一个具有api端点的控制器。我的kafka民意调查了这个话题。当我启动应用程序时,我看到kafka开始但问题是我的端点无法正常工作。甚至应用程序也没有提到所提到的端口。我需要测试我的端点,但我不能。我看到我的kafka开始工作正常,但我没有看到提示说应用程序从端口XXXX开始并且端点不起作用。
登录控制台:
2018-04-17 17:18:59.447 INFO 59720 --- [主要] c.f.s.e.EventAggregationApplication:开始 带有PID的FPTECHS48s-MacBook-Pro.local上的EventAggregationApplication 59720(/ Users / fptechs48 / IdeaProjects / event-aggregation / target / classes 由fptechs48开始 / Users / fptechs48 / IdeaProjects / event-aggregation)2018-04-17 17:18:59.450 DEBUG 59720 --- [主要] c.f.s.e.EventAggregationApplication:使用Spring Boot运行 v1.5.9.RELEASE,Spring v4.3.13.RELEASE 2018-04-17 17:18:59.450 INFO 59720 --- [main] c.f.s.e.EventAggregationApplication: 以下配置文件处于活动状态:dev 2018-04-17 17:18:59.487 INFO 59720 --- [main] s.c.a.AnnotationConfigApplicationContext: 清爽 org.springframework.context.annotation.AnnotationConfigApplicationContext@1198b989: 启动日期[Tue Apr 17 17:18:59 IST 2018];上下文层次结构的根 2018-04-17 17:18:59.894 INFO 59720 --- [主要] trationDelegate $ BeanPostProcessorChecker:Bean 'org.springframework.kafka.annotation.KafkaBootstrapConfiguration' 类型 [org.springframework.kafka.annotation.KafkaBootstrapConfiguration $$ EnhancerBySpringCGLIB $$ b36fb556] 不适合所有BeanPostProcessors处理(for 例如:不符合自动代理条件)2018-04-17 17:19:00.521 INFO 59720 --- [main] o.a.k.clients.admin.AdminClientConfig: AdminClientConfig值:bootstrap.servers = [13.126.200.243:9092] client.id = connections.max.idle.ms = 300000 metadata.max.age.ms = 300000 metric.reporters = [] metrics.num.samples = 2 metrics.recording.level = INFO metrics.sample.window.ms = 30000 receive.buffer.bytes = 65536 reconnect.backoff.max.ms = 1000 reconnect.backoff.ms = 50 request.timeout.ms = 120000 retries = 5 retry.backoff.ms = 100 sasl.jaas.config = null sasl.kerberos.kinit.cmd = / usr / bin / kinit sasl.kerberos.min.time.before.relogin = 60000 sasl.kerberos.service.name = null sasl.kerberos.ticket.renew.jitter = 0.05 sasl.kerberos.ticket.renew.window.factor = 0.8 sasl.mechanism = GSSAPI security.protocol = PLAINTEXT send.buffer.bytes = 131072 ssl.cipher.suites = null ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1] ssl.endpoint.identification.algorithm = null ssl.key.password = null ssl.keymanager.algorithm = SunX509 ssl.keystore.location = null ssl.keystore.password = null ssl.keystore.type = JKS ssl.protocol = TLS ssl.provider = null ssl.secure.random.implementation = null ssl.trustmanager.algorithm = PKIX ssl.truststore.location = null ssl.truststore.password = null ssl.truststore.type = JKS
2018-04-17 17:19:00.553 INFO 59720 --- [主要] o.a.kafka.common.utils.AppInfoParser:Kafka版本:1.0.0 2018-04-17 17:19:00.553 INFO 59720 --- [主要] o.a.kafka.common.utils.AppInfoParser:Kafka commitId: aaa7af6d4a11b29d
之后kafka开始听主题,但是如果我点击我的应用程序中写的端点它不起作用。 甚至控制台也没有说我 Tomcat在端口XXXX上启动