Skip to content

Tag: spring-mvc

Spring Boot 2.x Servlet Path is ignored in test

in my application-test.properties I have this server.servlet.context-path=/api It works totally fine when I run the application and test it with postman. But as soon as I run my tests it swallows the part /api of the path. So basically how it should be localhost:8080/api/testUrl but the controller is only ava…