relative paths Spring Boot with server.contextPath

1

Friends, how can I work with relative paths in spring boot with server.contextPath = / test, it's to find a jasperReport file

    
asked by CristianBonk 01.02.2018 в 21:03
source

1 answer

0

These are the 3 ways to do the relative routes with spring boot, the last one worked for me personally:

server.context-path=/miapp

server.servlet-path=/miapp

server.servlet.contextPath=/miapp

Any of them, you must include them in the application.properties

    
answered by 15.03.2018 в 15:45