Lase9 - SysDistributed - Part 2
Lase9 - SysDistributed - Part 2
@Table(name = “users”)
données.
public class User {
@GenerativeValue utilisée avec @Id pour générer les private String username;
@Column(name=”email”,nullable=false,length=50)
Spring Boot
Project Package Name resources application.propreties
main Repositories
Models
Controllers
Services
spring.datasource.url=jdbc:mysql://localhost:3306/project
public class HrBackendApplication {
spring.datasource.username=root
public static void main(String[] args) {
spring.datasource.password=
SpringApplication.run(HrBackendApplication.class, args);
spring.datasource.platform=mysql
}
spring.jpa.hibernate.ddl-auto=update }
des annotations
@Configuratio
@EnableAutoConfiguratio
@EnableWebMv
@ComponentScan analyse des changement