Standalone Tomcat allows you to enable TRACE HTTP method through allowTrace attribute:
allowTrace - A
booleanvalue which can be used to enable or disable the TRACE HTTP method. If not specified, this attribute is set tofalse.
If I have to do that same for a Spring Boot project using embedded Tomcat - what kind of config/properties setting I can use for that?
I have looked for the properties supported by Spring Boot for Tomcat server:
but it seems to be not listed. Any thoughts how to achieve this.

You can configure
Connector.allowTraceproperty programmatically. In this case you have to define bean for classEmbeddedServletContainerFactoryand add connector customizer by callingTomcatEmbeddedServletContainerFactory.addConnectorCustomizers(...)method. It allows you to accessConnectorobject and call any configuration method you need. In this case we simply callconnector.setAllowTrace(true):You can configure this bean in a separate configuration class (like in the example above) or you can simply add this bean method to your main Spring Boot application class.
Couldn't it be done with
server.tomcat.*like property?At this moment - nope. Current Spring Boot version (
1.5.9-RELEASE) does not allow to set it up with a simple property. All properties withserver.tomcatprefix are mapped automatically to classorg.springframework.boot.autoconfigure.web.ServerProperties.Tomcat. If you take a look at its javadocs (or source code in your IDE) you will see that there is no method likesetAllowTrace(boolean value)or something like that.