我无法登录我的系统。当我在我的网络表单中插入数据并单击登录按钮时,我的系统不工作。(数据是正确的)。用户实体: @Entity @Table(name = "usr_usuarios") public class Usuario { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "usr_id") private Long id; @Column(name = "usr_email", nullable = false, length = 100) @NotNull(message = "O email é obrigatório") @Length(min = 5, max = 100, message = "O email deve conter entre 5 e 100 caracteres.") private String email; @Column(name = "usr_senha", nullable = false, length = 100) @NotNull(message = "A senha é obrigatório") private String senha; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getSenha() { return senha; } public void setSenha(String senha) { this.senha = senha; }}用户存储库:public interface RepositorioUsuario extends JpaRepository<Usuario, Long> { Usuario findByEmail(String email);}
1 回答
小唯快跑啊
TA贡献1863条经验 获得超2个赞
这里。你错过}了spring.queries.roles-query:
@Value("${spring.queries.roles-query")
private String roleQuery;
它应该是 :
@Value("${spring.queries.roles-query}")
private String roleQuery;
添加回答
举报
0/150
提交
取消