NutzCN Logo
问答 自动见表,实体类里写的字段名是大写,但是建出来的表是字段名是小写
发布于 2343天前 作者 Nooft 3554 次浏览 复制 上一个帖子 下一个帖子
标签:

自动见表,实体类里写的字段名是大写,但是建出来的表是字段名是小写,求大佬指导下,怎么让它根据字段名大小写生成对应字段,而不是把大写都转为小写?用的是pg

18 回复

"自动见表" ???

pojo贴一下

这个

  dao:
    runtime:
      create: true
      migration: false
      basepackage: com.zgtech.user.model.mapped
package com.zgtech.user.model.mapped;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import java.io.Serializable;

/**
 * @Author xslde
 * @Description
 * @Date 2018/7/24 10:41
 */
@Table("user_student_standard")
public class StudentStandard implements Serializable {


    @Column("JCXS010101")
    @Comment("学号")
    private String JCXS010101;

    @Column("JCTB020101")
    @Comment("姓名")
    private String JCTB020101;

    @Column("JCTB020102")
    @Comment("英文姓名")
    private String JCTB020102;


    @Column("JCTB020103")
    @Comment("姓名拼音")
    private String JCTB020103;

    @Column("JCTB020104")
    @Comment("曾用名")
    private String JCTB020104;

    @Column("JCTB020105")
    @Comment("性别码")
    private String JCTB020105;

    @Column("JCTB020106")
    @Comment("出生日期")
    private String JCTB020106;

    @Column("JCTB020107")
    @Comment("出生地码")
    private String JCTB020107;

    @Column("JCTB020108")
    @Comment("籍贯")
    private String JCTB020108;

    @Column("JCTB020109")
    @Comment("名族码")
    private String JCTB020109;

    @Column("JCTB020110")
    @Comment("国籍地区码")
    private String JCTB020110;

    @Column("JCTB020111")
    @Comment("身份证类型码")
    private String JCTB020111;

    @Column("JCTB020112")
    @Comment("身份证件号")
    private String JCTB020112;

    @Column("JCTB020113")
    @Comment("婚姻状况码")
    private String JCTB020113;

    @Column("JCTB020114")
    @Comment("港澳台侨外码")
    private String JCTB020114;

    @Column("JCTB020115")
    @Comment("政治面貌码")
    private String JCTB020115;

    @Column("JCTB020116")
    @Comment("健康状况码")
    private String JCTB020116;

    @Column("JCTB020117")
    @Comment("信仰宗教码")
    private String JCTB020117;

    @Column("JCTB020118")
    @Comment("血型码")
    private String JCTB020118;

    @Column("JCTB020119")
    @Comment("照片")
    private String JCTB020119;

    @Column("JCTB020121")
    @Comment("身份证件有效期")
    private String JCTB020121;


    @Column("JCTB020122")
    @Comment("是否独生子女")
    private String JCTB020122;


    public String getJCXS010101() {
        return JCXS010101;
    }

    public void setJCXS010101(String JCXS010101) {
        this.JCXS010101 = JCXS010101;
    }

    public String getJCTB020101() {
        return JCTB020101;
    }

    public void setJCTB020101(String JCTB020101) {
        this.JCTB020101 = JCTB020101;
    }

    public String getJCTB020102() {
        return JCTB020102;
    }

    public void setJCTB020102(String JCTB020102) {
        this.JCTB020102 = JCTB020102;
    }

    public String getJCTB020103() {
        return JCTB020103;
    }

    public void setJCTB020103(String JCTB020103) {
        this.JCTB020103 = JCTB020103;
    }

    public String getJCTB020104() {
        return JCTB020104;
    }

    public void setJCTB020104(String JCTB020104) {
        this.JCTB020104 = JCTB020104;
    }

    public String getJCTB020105() {
        return JCTB020105;
    }

    public void setJCTB020105(String JCTB020105) {
        this.JCTB020105 = JCTB020105;
    }

    public String getJCTB020106() {
        return JCTB020106;
    }

    public void setJCTB020106(String JCTB020106) {
        this.JCTB020106 = JCTB020106;
    }

    public String getJCTB020107() {
        return JCTB020107;
    }

    public void setJCTB020107(String JCTB020107) {
        this.JCTB020107 = JCTB020107;
    }

    public String getJCTB020108() {
        return JCTB020108;
    }

    public void setJCTB020108(String JCTB020108) {
        this.JCTB020108 = JCTB020108;
    }

    public String getJCTB020109() {
        return JCTB020109;
    }

    public void setJCTB020109(String JCTB020109) {
        this.JCTB020109 = JCTB020109;
    }

    public String getJCTB020110() {
        return JCTB020110;
    }

    public void setJCTB020110(String JCTB020110) {
        this.JCTB020110 = JCTB020110;
    }

    public String getJCTB020111() {
        return JCTB020111;
    }

    public void setJCTB020111(String JCTB020111) {
        this.JCTB020111 = JCTB020111;
    }

    public String getJCTB020112() {
        return JCTB020112;
    }

    public void setJCTB020112(String JCTB020112) {
        this.JCTB020112 = JCTB020112;
    }

    public String getJCTB020113() {
        return JCTB020113;
    }

    public void setJCTB020113(String JCTB020113) {
        this.JCTB020113 = JCTB020113;
    }

    public String getJCTB020114() {
        return JCTB020114;
    }

    public void setJCTB020114(String JCTB020114) {
        this.JCTB020114 = JCTB020114;
    }

    public String getJCTB020115() {
        return JCTB020115;
    }

    public void setJCTB020115(String JCTB020115) {
        this.JCTB020115 = JCTB020115;
    }

    public String getJCTB020116() {
        return JCTB020116;
    }

    public void setJCTB020116(String JCTB020116) {
        this.JCTB020116 = JCTB020116;
    }

    public String getJCTB020117() {
        return JCTB020117;
    }

    public void setJCTB020117(String JCTB020117) {
        this.JCTB020117 = JCTB020117;
    }

    public String getJCTB020118() {
        return JCTB020118;
    }

    public void setJCTB020118(String JCTB020118) {
        this.JCTB020118 = JCTB020118;
    }

    public String getJCTB020119() {
        return JCTB020119;
    }

    public void setJCTB020119(String JCTB020119) {
        this.JCTB020119 = JCTB020119;
    }

    public String getJCTB020121() {
        return JCTB020121;
    }

    public void setJCTB020121(String JCTB020121) {
        this.JCTB020121 = JCTB020121;
    }

    public String getJCTB020122() {
        return JCTB020122;
    }

    public void setJCTB020122(String JCTB020122) {
        this.JCTB020122 = JCTB020122;
    }
}

日志贴一下

18-07-24 11:22:19.412 DEBUG [main] CREATE TABLE user_student_standard(
JCXS010101 VARCHAR(128),
JCTB020101 VARCHAR(128),
JCTB020102 VARCHAR(128),
JCTB020103 VARCHAR(128),
JCTB020104 VARCHAR(128),
JCTB020105 VARCHAR(128),
JCTB020106 VARCHAR(128),
JCTB020107 VARCHAR(128),
JCTB020108 VARCHAR(128),
JCTB020109 VARCHAR(128),
JCTB020110 VARCHAR(128),
JCTB020111 VARCHAR(128),
JCTB020112 VARCHAR(128),
JCTB020113 VARCHAR(128),
JCTB020114 VARCHAR(128),
JCTB020115 VARCHAR(128),
JCTB020116 VARCHAR(128),
JCTB020117 VARCHAR(128),
JCTB020118 VARCHAR(128),
JCTB020119 VARCHAR(128),
JCTB020121 VARCHAR(128),
JCTB020122 VARCHAR(128))
18-07-24 11:22:19.415 DEBUG [main] comment on column user_student_standard.JCXS010101 is '学号'
18-07-24 11:22:19.415 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCXS010101 is '学号'
18-07-24 11:22:19.416 DEBUG [main] comment on column user_student_standard.JCTB020101 is '姓名'
18-07-24 11:22:19.416 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020101 is '姓名'
18-07-24 11:22:19.417 DEBUG [main] comment on column user_student_standard.JCTB020102 is '英文姓名'
18-07-24 11:22:19.417 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020102 is '英文姓名'
18-07-24 11:22:19.418 DEBUG [main] comment on column user_student_standard.JCTB020103 is '姓名拼音'
18-07-24 11:22:19.418 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020103 is '姓名拼音'
18-07-24 11:22:19.419 DEBUG [main] comment on column user_student_standard.JCTB020104 is '曾用名'
18-07-24 11:22:19.419 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020104 is '曾用名'
18-07-24 11:22:19.420 DEBUG [main] comment on column user_student_standard.JCTB020105 is '性别码'
18-07-24 11:22:19.420 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020105 is '性别码'
18-07-24 11:22:19.420 DEBUG [main] comment on column user_student_standard.JCTB020106 is '出生日期'
18-07-24 11:22:19.420 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020106 is '出生日期'
18-07-24 11:22:19.421 DEBUG [main] comment on column user_student_standard.JCTB020107 is '出生地码'
18-07-24 11:22:19.421 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020107 is '出生地码'
18-07-24 11:22:19.422 DEBUG [main] comment on column user_student_standard.JCTB020108 is '籍贯'
18-07-24 11:22:19.422 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020108 is '籍贯'
18-07-24 11:22:19.423 DEBUG [main] comment on column user_student_standard.JCTB020109 is '名族码'
18-07-24 11:22:19.423 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020109 is '名族码'
18-07-24 11:22:19.424 DEBUG [main] comment on column user_student_standard.JCTB020110 is '国籍地区码'
18-07-24 11:22:19.424 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020110 is '国籍地区码'
18-07-24 11:22:19.424 DEBUG [main] comment on column user_student_standard.JCTB020111 is '身份证类型码'
18-07-24 11:22:19.424 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020111 is '身份证类型码'
18-07-24 11:22:19.425 DEBUG [main] comment on column user_student_standard.JCTB020112 is '身份证件号'
18-07-24 11:22:19.425 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020112 is '身份证件号'
18-07-24 11:22:19.426 DEBUG [main] comment on column user_student_standard.JCTB020113 is '婚姻状况码'
18-07-24 11:22:19.426 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020113 is '婚姻状况码'
18-07-24 11:22:19.427 DEBUG [main] comment on column user_student_standard.JCTB020114 is '港澳台侨外码'
18-07-24 11:22:19.427 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020114 is '港澳台侨外码'
18-07-24 11:22:19.428 DEBUG [main] comment on column user_student_standard.JCTB020115 is '政治面貌码'
18-07-24 11:22:19.428 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020115 is '政治面貌码'
18-07-24 11:22:19.428 DEBUG [main] comment on column user_student_standard.JCTB020116 is '健康状况码'
18-07-24 11:22:19.428 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020116 is '健康状况码'
18-07-24 11:22:19.429 DEBUG [main] comment on column user_student_standard.JCTB020117 is '信仰宗教码'
18-07-24 11:22:19.429 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020117 is '信仰宗教码'
18-07-24 11:22:19.430 DEBUG [main] comment on column user_student_standard.JCTB020118 is '血型码'
18-07-24 11:22:19.430 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020118 is '血型码'
18-07-24 11:22:19.431 DEBUG [main] comment on column user_student_standard.JCTB020119 is '照片'
18-07-24 11:22:19.431 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020119 is '照片'
18-07-24 11:22:19.432 DEBUG [main] comment on column user_student_standard.JCTB020121 is '身份证件有效期'
18-07-24 11:22:19.432 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020121 is '身份证件有效期'
18-07-24 11:22:19.433 DEBUG [main] comment on column user_student_standard.JCTB020122 is '是否独生子女'
18-07-24 11:22:19.433 INFO [main] Can't identify SQL type :   comment on column user_student_standard.JCTB020122 is '是否独生子女'
2018-07-24 11:22:20.701  INFO [educard-user-service,,,] 13252 --- [           main] com.netflix.discovery.DiscoveryClient    : Shutting down DiscoveryClient ...

Daos类有个开关属性 FORCE_WRAP_COLUMN_NAME 设置为true就好了

您好,我使用的nutz-plugins-spring-boot-starter, 怎么配置啊?

我这样是正常的,但是用起来不好用啊,Column那个aop在哪儿呢?

package com.zgtech.user.model.mapped;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import java.io.Serializable;

/**
 * @Author xslde
 * @Description
 * @Date 2018/7/24 10:41
 */
@Table("user_student_standard")
public class StudentStandard implements Serializable {


    @Column("\"JCXS010101\"")
    @Comment("学号")
    private String JCXS010101;

    @Column("\"JCTB020101\"")
    @Comment("姓名")
    private String JCTB020101;

    @Column("\"JCTB020102\"")
    @Comment("英文姓名")
    private String JCTB020102;


    @Column("\"JCTB020103\"")
    @Comment("姓名拼音")
    private String JCTB020103;

    @Column("\"JCTB020104\"")
    @Comment("曾用名")
    private String JCTB020104;

    @Column("\"JCTB020105\"")
    @Comment("性别码")
    private String JCTB020105;

    @Column("\"JCTB020106\"")
    @Comment("出生日期")
    private String JCTB020106;

    @Column("\"JCTB020107\"")
    @Comment("出生地码")
    private String JCTB020107;

    @Column("\"JCTB020108\"")
    @Comment("籍贯")
    private String JCTB020108;

    @Column("\"JCTB020109\"")
    @Comment("名族码")
    private String JCTB020109;

    @Column("\"JCTB020110\"")
    @Comment("国籍地区码")
    private String JCTB020110;

    @Column("\"JCTB020111\"")
    @Comment("身份证类型码")
    private String JCTB020111;

    @Column("\"JCTB020112\"")
    @Comment("身份证件号")
    private String JCTB020112;

    @Column("\"JCTB020113\"")
    @Comment("婚姻状况码")
    private String JCTB020113;

    @Column("\"JCTB020114\"")
    @Comment("港澳台侨外码")
    private String JCTB020114;

    @Column("\"JCTB020115\"")
    @Comment("政治面貌码")
    private String JCTB020115;

    @Column("\"JCTB020116\"")
    @Comment("健康状况码")
    private String JCTB020116;

    @Column("\"JCTB020117\"")
    @Comment("信仰宗教码")
    private String JCTB020117;

    @Column("\"JCTB020118\"")
    @Comment("血型码")
    private String JCTB020118;

    @Column("\"JCTB020119\"")
    @Comment("照片")
    private String JCTB020119;

    @Column("\"JCTB020121\"")
    @Comment("身份证件有效期")
    private String JCTB020121;


    @Column("\"JCTB020122\"")
    @Comment("是否独生子女")
    private String JCTB020122;


    public String getJCXS010101() {
        return JCXS010101;
    }

    public void setJCXS010101(String JCXS010101) {
        this.JCXS010101 = JCXS010101;
    }

    public String getJCTB020101() {
        return JCTB020101;
    }

    public void setJCTB020101(String JCTB020101) {
        this.JCTB020101 = JCTB020101;
    }

    public String getJCTB020102() {
        return JCTB020102;
    }

    public void setJCTB020102(String JCTB020102) {
        this.JCTB020102 = JCTB020102;
    }

    public String getJCTB020103() {
        return JCTB020103;
    }

    public void setJCTB020103(String JCTB020103) {
        this.JCTB020103 = JCTB020103;
    }

    public String getJCTB020104() {
        return JCTB020104;
    }

    public void setJCTB020104(String JCTB020104) {
        this.JCTB020104 = JCTB020104;
    }

    public String getJCTB020105() {
        return JCTB020105;
    }

    public void setJCTB020105(String JCTB020105) {
        this.JCTB020105 = JCTB020105;
    }

    public String getJCTB020106() {
        return JCTB020106;
    }

    public void setJCTB020106(String JCTB020106) {
        this.JCTB020106 = JCTB020106;
    }

    public String getJCTB020107() {
        return JCTB020107;
    }

    public void setJCTB020107(String JCTB020107) {
        this.JCTB020107 = JCTB020107;
    }

    public String getJCTB020108() {
        return JCTB020108;
    }

    public void setJCTB020108(String JCTB020108) {
        this.JCTB020108 = JCTB020108;
    }

    public String getJCTB020109() {
        return JCTB020109;
    }

    public void setJCTB020109(String JCTB020109) {
        this.JCTB020109 = JCTB020109;
    }

    public String getJCTB020110() {
        return JCTB020110;
    }

    public void setJCTB020110(String JCTB020110) {
        this.JCTB020110 = JCTB020110;
    }

    public String getJCTB020111() {
        return JCTB020111;
    }

    public void setJCTB020111(String JCTB020111) {
        this.JCTB020111 = JCTB020111;
    }

    public String getJCTB020112() {
        return JCTB020112;
    }

    public void setJCTB020112(String JCTB020112) {
        this.JCTB020112 = JCTB020112;
    }

    public String getJCTB020113() {
        return JCTB020113;
    }

    public void setJCTB020113(String JCTB020113) {
        this.JCTB020113 = JCTB020113;
    }

    public String getJCTB020114() {
        return JCTB020114;
    }

    public void setJCTB020114(String JCTB020114) {
        this.JCTB020114 = JCTB020114;
    }

    public String getJCTB020115() {
        return JCTB020115;
    }

    public void setJCTB020115(String JCTB020115) {
        this.JCTB020115 = JCTB020115;
    }

    public String getJCTB020116() {
        return JCTB020116;
    }

    public void setJCTB020116(String JCTB020116) {
        this.JCTB020116 = JCTB020116;
    }

    public String getJCTB020117() {
        return JCTB020117;
    }

    public void setJCTB020117(String JCTB020117) {
        this.JCTB020117 = JCTB020117;
    }

    public String getJCTB020118() {
        return JCTB020118;
    }

    public void setJCTB020118(String JCTB020118) {
        this.JCTB020118 = JCTB020118;
    }

    public String getJCTB020119() {
        return JCTB020119;
    }

    public void setJCTB020119(String JCTB020119) {
        this.JCTB020119 = JCTB020119;
    }

    public String getJCTB020121() {
        return JCTB020121;
    }

    public void setJCTB020121(String JCTB020121) {
        this.JCTB020121 = JCTB020121;
    }

    public String getJCTB020122() {
        return JCTB020122;
    }

    public void setJCTB020122(String JCTB020122) {
        this.JCTB020122 = JCTB020122;
    }
}

那是个静态变量

我看了啊,它写在静态代码块里,但是我不知道怎么给他重新设置值啊

好了,我在启动类注入了一个bean


@Bean public Daos daos(){ return new Daos() { { FORCE_WRAP_COLUMN_NAME = true; } }; }

第一次启动创建表报错,但是表创建成功了,但是项目启动失败,需要再次启动项目,这是个什么原因啊

18-07-25 09:55:13.252 DEBUG [main] CREATE TABLE manage_education_bureau(
"unionid" VARCHAR(128),
"DWH" VARCHAR(10),
"DWMC" VARCHAR(60),
"DWYWMC" VARCHAR(180),
"DWJC" VARCHAR(12),
"DWYWJC" VARCHAR(8),
"DWJP" VARCHAR(6),
"DWDZ" VARCHAR(180),
"LSDWH " VARCHAR(10),
"DWLBM" VARCHAR(1),
"DWBBM" VARCHAR(1),
"DWYXBS" VARCHAR(1),
"SXRQ" VARCHAR(8),
"SFST" VARCHAR(1),
"JLNY" VARCHAR(6),
"DWFZRH " VARCHAR(20),
CONSTRAINT manage_education_bureau_pkey PRIMARY KEY ("unionid")
)
18-07-25 09:55:13.257 DEBUG [main] comment on column manage_education_bureau.DWH is '单位号'
18-07-25 09:55:13.257 INFO [main] Can't identify SQL type :   comment on column manage_education_bureau.DWH is '单位号'
18-07-25 09:55:13.263 DEBUG [main] SQLException
org.postgresql.util.PSQLException: ERROR: column "dwh" of relation "manage_education_bureau" does not exist
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
	at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3051)
	at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3049)
	at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
	at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:498)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
	at org.nutz.integration.spring.SpringDaoRunner._run(SpringDaoRunner.java:18)
	at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:75)
	at org.nutz.trans.Trans.exec(Trans.java:174)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:73)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:348)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:317)
	at org.nutz.dao.impl.jdbc.psql.PsqlJdbcExpert.createEntity(PsqlJdbcExpert.java:118)
	at org.nutz.dao.impl.NutDao.create(NutDao.java:817)
	at org.nutz.dao.util.Daos.createTables(Daos.java:544)
	at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:39)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:35)
	at org.nutz.lang.Lang.each(Lang.java:1598)
	at org.nutz.lang.Lang.each(Lang.java:1563)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter.create(NutzDataBaseIniter.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:365)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:308)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:424)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1700)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
	at com.zgtech.ManageApplication.main(ManageApplication.java:25)
18-07-25 09:55:13.266 DEBUG [main] CREATE TABLE manage_education_bureau_standard(
"JCTB010301" VARCHAR(10),
"JCTB010302" VARCHAR(60),
"JCTB010303" VARCHAR(180),
"JCTB010304" VARCHAR(12),
"JCTB010305" VARCHAR(8),
"JCTB010306" VARCHAR(6),
"JCTB010307" VARCHAR(180),
"JCTB010308" VARCHAR(10),
"JCTB010309" VARCHAR(1),
"JCTB010310" VARCHAR(1),
"JCTB010311" VARCHAR(1),
"JCTB010312" VARCHAR(8),
"JCTB010313" VARCHAR(1),
"JCTB010314" VARCHAR(6),
"JCTB010315" VARCHAR(20))
18-07-25 09:55:13.268 DEBUG [main] comment on column manage_education_bureau_standard.JCTB010301 is '单位号'
18-07-25 09:55:13.268 INFO [main] Can't identify SQL type :   comment on column manage_education_bureau_standard.JCTB010301 is '单位号'
18-07-25 09:55:13.269 DEBUG [main] SQLException
org.postgresql.util.PSQLException: ERROR: column "jctb010301" of relation "manage_education_bureau_standard" does not exist
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
	at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3051)
	at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3049)
	at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
	at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:498)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
	at org.nutz.integration.spring.SpringDaoRunner._run(SpringDaoRunner.java:18)
	at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:75)
	at org.nutz.trans.Trans.exec(Trans.java:174)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:73)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:348)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:317)
	at org.nutz.dao.impl.jdbc.psql.PsqlJdbcExpert.createEntity(PsqlJdbcExpert.java:118)
	at org.nutz.dao.impl.NutDao.create(NutDao.java:817)
	at org.nutz.dao.util.Daos.createTables(Daos.java:544)
	at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:39)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:35)
	at org.nutz.lang.Lang.each(Lang.java:1598)
	at org.nutz.lang.Lang.each(Lang.java:1563)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter.create(NutzDataBaseIniter.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:365)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:308)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:424)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1700)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
	at com.zgtech.ManageApplication.main(ManageApplication.java:25)
18-07-25 09:55:13.275 DEBUG [main] CREATE TABLE manage_school_class(
"unionid" VARCHAR(128),
"BH" VARCHAR(10),
"BJMC" VARCHAR(20),
"JBNY" VARCHAR(6),
"SSNJ" VARCHAR(10),
"BZRGH" VARCHAR(128),
"BZXH" VARCHAR(128),
CONSTRAINT manage_school_class_pkey PRIMARY KEY ("unionid")
)
18-07-25 09:55:13.277 DEBUG [main] comment on column manage_school_class.BH is '班号'
18-07-25 09:55:13.278 INFO [main] Can't identify SQL type :   comment on column manage_school_class.BH is '班号'
18-07-25 09:55:13.279 DEBUG [main] SQLException
org.postgresql.util.PSQLException: ERROR: column "bh" of relation "manage_school_class" does not exist
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
	at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3051)
	at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3049)
	at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
	at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:498)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
	at org.nutz.integration.spring.SpringDaoRunner._run(SpringDaoRunner.java:18)
	at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:75)
	at org.nutz.trans.Trans.exec(Trans.java:174)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:73)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:348)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:317)
	at org.nutz.dao.impl.jdbc.psql.PsqlJdbcExpert.createEntity(PsqlJdbcExpert.java:118)
	at org.nutz.dao.impl.NutDao.create(NutDao.java:817)
	at org.nutz.dao.util.Daos.createTables(Daos.java:544)
	at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:39)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:35)
	at org.nutz.lang.Lang.each(Lang.java:1598)
	at org.nutz.lang.Lang.each(Lang.java:1563)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter.create(NutzDataBaseIniter.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:365)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:308)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:424)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1700)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
	at com.zgtech.ManageApplication.main(ManageApplication.java:25)
18-07-25 09:55:13.281 DEBUG [main] CREATE TABLE manage_school_class_standard(
"JCXX020001" VARCHAR(10),
"JCXX020002" VARCHAR(20),
"JCXX020003" VARCHAR(6),
"JCXX020004" VARCHAR(10),
"JCXX020005" VARCHAR(128),
"JCXX020006" VARCHAR(128))
18-07-25 09:55:13.282 DEBUG [main] comment on column manage_school_class_standard.JCXX020001 is '班号'
18-07-25 09:55:13.282 INFO [main] Can't identify SQL type :   comment on column manage_school_class_standard.JCXX020001 is '班号'
18-07-25 09:55:13.283 DEBUG [main] SQLException
org.postgresql.util.PSQLException: ERROR: column "jcxx020001" of relation "manage_school_class_standard" does not exist
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:306)
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
	at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:155)
	at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:144)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3051)
	at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
	at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3049)
	at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
	at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:498)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runPreparedStatement(NutDaoExecutor.java:308)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:90)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:66)
	at org.nutz.dao.impl.interceptor.DaoLogInterceptor.filter(DaoLogInterceptor.java:22)
	at org.nutz.dao.DaoInterceptorChain.doChain(DaoInterceptorChain.java:64)
	at org.nutz.dao.DaoInterceptorChain.invoke(DaoInterceptorChain.java:139)
	at org.nutz.integration.spring.SpringDaoRunner._run(SpringDaoRunner.java:18)
	at org.nutz.dao.impl.sql.run.NutDaoRunner$1.run(NutDaoRunner.java:75)
	at org.nutz.trans.Trans.exec(Trans.java:174)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:73)
	at org.nutz.dao.impl.DaoSupport.run(DaoSupport.java:240)
	at org.nutz.dao.impl.DaoSupport._exec(DaoSupport.java:252)
	at org.nutz.dao.impl.DaoSupport.execute(DaoSupport.java:236)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:348)
	at org.nutz.dao.impl.jdbc.AbstractJdbcExpert.addComment(AbstractJdbcExpert.java:317)
	at org.nutz.dao.impl.jdbc.psql.PsqlJdbcExpert.createEntity(PsqlJdbcExpert.java:118)
	at org.nutz.dao.impl.NutDao.create(NutDao.java:817)
	at org.nutz.dao.util.Daos.createTables(Daos.java:544)
	at org.nutz.dao.util.Daos.createTablesInPackage(Daos.java:463)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:39)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter$1.invoke(NutzDataBaseIniter.java:35)
	at org.nutz.lang.Lang.each(Lang.java:1598)
	at org.nutz.lang.Lang.each(Lang.java:1563)
	at org.nutz.plugin.spring.boot.listener.NutzDataBaseIniter.create(NutzDataBaseIniter.java:35)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:365)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:308)
	at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:424)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1700)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
	at com.zgtech.ManageApplication.main(ManageApplication.java:25)

comment语句忘记加逃逸了,看来是bug

那我需要怎样设置让他不抛异常呢

添加回复
请先登陆
回到顶部