We used to specify display-name in our web.xml Currently we don't have a web.xml (and adding one seems to break the application)
We are using spring boot / spring 4 / java 7 / maven3 to develop rest services.
Can anyone tell me how the display-name can be be set ? For example from within the java code / SpringBootServletInitializer ?
note: I currently don't have any @WebServlet tags
After adding web.xml below, tomcat manager will show the display-name, but when opening my application I get 404. It seems adding web.xml breaks my app.
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>MyT2ConfigServer</display-name>
<description>MyT2ConfigServer description</description>
</web-app>
After adding web.xml I ran into an unrelated problem caused by some other change I made... When I fixed this other problem all was fine and I could use above web.xml as suggested by M.Deinum.