Fala Rafael.
Obrigado pela resposta. Seguem os detalhes que você falou.
Sobre a configuração dos arquivos estáticos eu precisei criar uma configuração adicional, pois não estavam vindo os estilos normalmente durante o curso 1. Segui o sugerido no post a seguir e criei essa classe extendendo WebMvcConfigurerAdapter:
[indo buscar o post, vi que você participou dele também kk]
https://cursos.alura.com.br/forum/topico-atualizacao-resources-nao-sao-carregados-na-aula-10-58813
package br.com.casadocodigo.loja.conf;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
public class ResourceConfig extends WebMvcConfigurerAdapter {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
}
}
O outro ponto pegando como exemplo o arquivo cssbase-min.css:
Primeiro acesso -
Request URL: http://localhost:8080/casadocodigo/;jsessionid=3D691E80AC841BE57AA872023CB88D20resources/css/cssbase-min.css
Request Method: GET
Status Code: 404
Remote Address: [::1]:8080
Referrer Policy: no-referrer-when-downgrade
Content-Language: en
Content-Length: 1047
Content-Type: text/html;charset=utf-8
Date: Thu, 31 May 2018 16:57:42 GMT
Accept: text/css,*/*;q=0.1
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Connection: keep-alive
Cookie: JSESSIONID=3D691E80AC841BE57AA872023CB88D20
Host: localhost:8080
Referer: http://localhost:8080/casadocodigo/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Após refresh:
Request URL: http://localhost:8080/casadocodigo/resources/css/cssbase-min.css
Request Method: GET
Status Code: 200
Remote Address: [::1]:8080
Referrer Policy: no-referrer-when-downgrade
Content-Length: 2062
Content-Type: text/css
Date: Thu, 31 May 2018 17:00:29 GMT
Last-Modified: Wed, 30 May 2018 00:51:30 GMT
Accept: text/css,*/*;q=0.1
Accept-Encoding: gzip, deflate, br
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Connection: keep-alive
Cookie: JSESSIONID=3D691E80AC841BE57AA872023CB88D20
Host: localhost:8080
Referer: http://localhost:8080/casadocodigo/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Porque a primeira requisição viria com a URL desse jeito?