Professor, apaguei meu banco para criar novamente, mas vi que ele não cria a tabela authorities do spring Security
package br.com.alura.mvc.mudi.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name="authorities")
public class Authorities {
@Id
private String username;
private String authority;
@OneToMany(mappedBy = "username")
private User user;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getAuthority() {
return authority;
}
public void setAuthority(String authority) {
this.authority = authority;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}