Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force Spring Boot to use Tomcat server #5350

Closed
poznachowski opened this issue Mar 7, 2016 · 2 comments
Closed

Force Spring Boot to use Tomcat server #5350

poznachowski opened this issue Mar 7, 2016 · 2 comments
Labels
for: stackoverflow A question that's better suited to stackoverflow.com

Comments

@poznachowski
Copy link

I use default Tomcat embedded container. However, in some of my tests I use Wiremock (using Jetty underneath). This, probably makes my integration tests run against Jetty server, not Tomcat. Any way to force Spring Boot to stick with Tomcat ?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 7, 2016
@snicoll
Copy link
Member

snicoll commented Mar 7, 2016

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

Having said that, you could define an empty TomcatEmbeddedServletContainerFactory @Bean in your test config to force Tomcat.

@snicoll snicoll closed this as completed Mar 7, 2016
@snicoll snicoll added for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 7, 2016
@poznachowski
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com
Projects
None yet
Development

No branches or pull requests

3 participants