Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Quando executo o thymeleaf no html, a tela fica totalmente branca

Quando executo o thymeleaf no html, a fica totalmente branca, não apresenta erros, e o tomcat está normal, é como se não atualizasse..., podem me ajudar ?

@Controller
public class HomeController {

    @GetMapping("/home")
    public String home(Model model) {
        Pedido pedido = new Pedido();
        pedido.setNomeProduto("Playstation 5");
        pedido.setUrlImagem("https://images-na.ssl-images-amazon.com/images/I/51AkwcmQ7RL._AC_SL1000_.jpg");
        pedido.setUrlProduto("https://www.amazon.com.br/PlayStation-Console-PlayStation%C2%AE5/dp/B088GNRX3J");
        pedido.setDescricao("Descrição qualquer Praystation 5");

         List<Pedido> pedidos = new ArrayList<Pedido>();
         model.addAttribute("pedidos", pedidos);

        return "home";
    }
<html>
    <head>
        <meta charset="UTF-8"/>
    </head>
    <body>

        <div th:each="pedido : ${pedidos}">
            <div th:text="${pedido.nomeProduto}">Nome do Produto</div>
            <div>Valor: <span th:text="${pedido.valorNegociado}">200,99</span></div>
            <div>Data da Entrega: <span th:text="${pedido.dateEntrega}">12/02/2021</span></div>
            <div>Produto</div>
            <div><input th:value="${pedido.urlProduto}" value="url do produto"/></div>

            <div>Descrição</div>
            <div>
                <textarea th:text="${pedido.descricao}">descrição do pedido</textarea>
            </div>

            <div>
                <img th:src="${pedido.urlImagem}"src=""/>
            </div>

        </div>

    </body>

</html>
 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.2)

2021-02-05 11:54:33.042  INFO 11704 --- [  restartedMain] br.com.alura.mvc.mudi.MudiApplication    : Starting MudiApplication using Java 15.0.1 on CENW10NPE05T94X with PID 11704 (C:\Curso-Alura\eclipse-alura-ws\mudi\target\classes started by re041589 in C:\Curso-Alura\eclipse-alura-ws\mudi)
2021-02-05 11:54:33.043  INFO 11704 --- [  restartedMain] br.com.alura.mvc.mudi.MudiApplication    : No active profile set, falling back to default profiles: default
2021-02-05 11:54:33.310  INFO 11704 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-02-05 11:54:33.311  INFO 11704 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-02-05 11:54:33.311  INFO 11704 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.41]
2021-02-05 11:54:33.336  INFO 11704 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-02-05 11:54:33.336  INFO 11704 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 291 ms
2021-02-05 11:54:33.380  INFO 11704 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-02-05 11:54:33.422  INFO 11704 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2021-02-05 11:54:33.432  INFO 11704 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2021-02-05 11:54:33.436  INFO 11704 --- [  restartedMain] br.com.alura.mvc.mudi.MudiApplication    : Started MudiApplication in 0.424 seconds (JVM running for 574.436)
2021-02-05 11:54:33.438  INFO 11704 --- [  restartedMain] .ConditionEvaluationDeltaLoggingListener : Condition evaluation unchanged
2021-02-05 11:54:44.543  INFO 11704 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-02-05 11:54:44.543  INFO 11704 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-02-05 11:54:44.543  INFO 11704 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 0 ms
1 resposta
solução!

já consegui resolver, obrigado, eram as " na sintaxe do thymeleaf