Whitelabel Error Page [SpringBoot + Gradel

0

In a java system with SpringBoot + Gradel. I'm getting an error message:

CodeController:packagecom.javainuse;

importorg.springframework.stereotype.Controller;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.servlet.ModelAndView;@ControllerpublicclassTestController{@RequestMapping("/testecielo")
    public ModelAndView firstPage() {
        return new ModelAndView("testecielo");
    }
}

BootAplicationGralde

package com.javainuse;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BootGradleApplication {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        SpringApplication.run(BootGradleApplication.class, args);   

    }

}

aplication.propierties

spring.mvc.view.prefix:/WEB-INF/jsp/
spring.mvc.view.suffix:.jsp

Mounting Folders

Error message

  

2018-08-08 16: 52: 57,628 ERROR 10540 --- [nio-8080-exec-8]   o.a.c.c. [. [. [.] [dispatcherServlet]: Servlet.service () for   servlet [dispatcherServlet] in context with path [] threw exception   [Circular view path: would dispatch back to the current   handler URL [/ testcielo] again. Check your ViewResolver setup! (Hint:   This may be the result of an unspecified view, due to default view   name generation.)] with root cause

    
asked by anonymous 08.08.2018 / 21:59

0 answers