Prática

Aplicação Funcionários WEB com Thymeleaf e MySQL

Arquitetura Spring Boot

Passos:

  1. Criar o projeto com todas as suas dependências;

  2. Criar os arquivos HTML com Thymeleaf;

  3. Alterar o arquivo application.properties;

  4. Criar a classe Controller.

Passo a passo

chevron-rightConfigurar e gerar projeto com suas dependênciashashtag

Acessar Url (https://start.spring.io/arrow-up-right), configurar e gerar o projeto com suas dependências:

chevron-rightImportar projeto no Eclipsehashtag
chevron-rightCriar estrutura de diretórioshashtag
chevron-rightCrias as classes para as entidades, serviços e repositóriohashtag

Entidade:

Serviços:

Repositório:

chevron-rightCriar o controladorhashtag
chevron-rightCriar classe de erro para o controladorhashtag

chevron-rightAlterar o arquivo application.propertieshashtag

src/main/resources

chevron-rightTemplateshashtag

Estrutura:

index.html

employees.html

employee.html

editemployee.html

newemployee.html

navbar.html

mensagem.html

400.html

404.html

500.html

Repositório:

Last updated