JasonS
JasonS

Reputation: 455

Does Spring Cloud Stream project needs web server (Tomcat) or not?

I'm using Spring Cloud Stream to write messaging-driven microservices.

My question is: For project A & B, do them need integrated web server/port (Tomcat) or not? Or just a common java application would be fine?

Upvotes: 1

Views: 392

Answers (1)

Gary Russell
Gary Russell

Reputation: 174554

If you don't want to access Boot's web support (actuator etc), you can disable the web using the application builder.

Simply add

.web(false)

before the run().

Alternatively, just set remote.port=0 and a random port will be selected for each.

Upvotes: 1

Related Questions