NutzCN Logo
问答 nutzboot 实体类 正常 到了nutz-spring-boot-starter 这个组件就异常了
发布于 933天前 作者 Hamming 1892 次浏览 复制 上一个帖子 下一个帖子
标签:

初始化建表异常 nutzboot 实体类 正常 到了nutz-spring-boot-starter 这个组件就异常了

@Table("sys_config")
public class SysConfig extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Name
    @Column("config_key")
    @Comment("配置项 ")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String configKey;

    /**
     * 参数值
     */
    @Column("config_value")
    @Comment("参数值")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String configValue;

    /**
     * 说明
     */
    @Column("note")
    @Comment("说明 ")
    private String note;

异常信息

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jwtAuthenticationTokenFilter': Unsatisfied dependency expressed through field 'tokenService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tokenService': Unsatisfied dependency expressed through field 'redisCache'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisConfig' defined in file [D:\IdeaProjects\ruoyi-vue-nutz\ruoyi-framework\target\classes\com\ruoyi\framework\config\RedisConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.nutz.spring.boot.dao.NutzDatabaseInitializer': Invocation of init method failed; nested exception is org.nutz.dao.DaoException: !Nutz SQL Error: 'ALTER TABLE sys_config DROP INDEX sys_config_pkey'
PreparedStatement: 
'ALTER TABLE sys_config DROP INDEX sys_config_pkey'
CaseMessage=ERROR: syntax error at or near "sys_config_pkey"
  位置:35
添加回复
请先登陆
回到顶部