Tito
Tito

Reputation: 2300

Spring Boot <absolute-ordering/> and metadata-complete="true" done with java config

I have a Spring Boot app. In that app, all my config is done with java config and currently i needed to add to my configuration two new security related entries, i.e.

metadata-complete="true"

<absolute-ordering/>

Till now i did not had web.xml file in my project. My question is how to configure those two features with java config i.e. no XML.

Here is an example of my current web.xml (located in "src/main/resources/WEB-INF/web.xml") file that i need to convert to java config

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" 
         version="3.1"
         metadata-complete="true"
             >
   <absolute-ordering/>

</web-app>

Upvotes: 0

Views: 5769

Answers (1)

Dave Syer
Dave Syer

Reputation: 58114

In an embedded container I don't think those properties in web.xml have any meaning, so you should be good to go. Spring Boot does not process WebApplicationInitializers (for example).

Upvotes: 2

Related Questions