O seu método está sendo acessado com sucesso, o problema é o retorno do método que deveria ser uma página JSP. Porém, ao que parece, ele não está conseguindo encontrar a página para abrir.
Você precisa descobrir o porque ele não encontra a página. Por exemplo:
nesta configuração a página deveria ficar dentro do diretório: /WEB-INF/view/
A
andreluizlunelli
Primeiramente obrigado pela resposta.
Então @romarcio, como posso fazer essa definição dos folders para minhas views? Eu estou apontando corretamente para propriedade propertyprefix. Segue as configurações que estou utilizando nos arquivos
spring-context.xml:
`
27.3.5 JSP limitations
When running a Spring Boot application that uses an embedded servlet container (and is packaged as an executable archive), there are some limitations in the JSP support.
With Tomcat it should work if you use war packaging, i.e. an executable war will work, and will also be deployable to a standard container (not limited to, but including Tomcat). An executable jar will not work because of a hard coded file pattern in Tomcat.
Jetty does not currently work as an embedded container with JSPs.
Undertow does not support JSPs.
There is a JSP sample so you can see how to set things up.
E também a nota importante: Do not use the src/main/webapp directory if your application will be packaged as a jar. Although this directory is a common standard, it will only work with war packaging and it will be silently ignored by most build tools if you generate a jar.