JosephZhu1983 / java-common-mistakes

书籍《Java 开发坑点解析:从根因分析到最佳实践》 & 极客时间专栏《Java业务开发常见错误100例》源码
1.8k stars 719 forks source link

Cannot run oom.usernameautocomplete example application #6

Closed brookwc closed 1 year ago

brookwc commented 1 year ago

I see the following error when i tried to run the application. I dont know why Field 'age' doesn't have a default value error since UserDTO and UserEntity does not have the age field at all.

/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/bin/java -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=61891:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/applejdk-8.0.312.7.1.jdk/Contents/Home/jre/lib/rt.jar:/Users/cwang/github/brookwc/java-common-mistakes/target/classes:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.2.1.RELEASE/spring-boot-starter-web-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter/2.2.1.RELEASE/spring-boot-starter-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot/2.2.1.RELEASE/spring-boot-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.2.1.RELEASE/spring-boot-autoconfigure-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.2.1.RELEASE/spring-boot-starter-logging-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/Users/cwang/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/Users/cwang/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.12.1/log4j-to-slf4j-2.12.1.jar:/Users/cwang/.m2/repository/org/apache/logging/log4j/log4j-api/2.12.1/log4j-api-2.12.1.jar:/Users/cwang/.m2/repository/org/slf4j/jul-to-slf4j/1.7.29/jul-to-slf4j-1.7.29.jar:/Users/cwang/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar:/Users/cwang/.m2/repository/org/yaml/snakeyaml/1.25/snakeyaml-1.25.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.2.1.RELEASE/spring-boot-starter-json-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.10.0/jackson-datatype-jdk8-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.10.0/jackson-datatype-jsr310-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.10.0/jackson-module-parameter-names-2.10.0.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.2.1.RELEASE/spring-boot-starter-tomcat-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.27/tomcat-embed-core-9.0.27.jar:/Users/cwang/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/9.0.27/tomcat-embed-el-9.0.27.jar:/Users/cwang/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/9.0.27/tomcat-embed-websocket-9.0.27.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-validation/2.2.1.RELEASE/spring-boot-starter-validation-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/jakarta/validation/jakarta.validation-api/2.0.1/jakarta.validation-api-2.0.1.jar:/Users/cwang/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.18.Final/hibernate-validator-6.0.18.Final.jar:/Users/cwang/.m2/repository/org/springframework/spring-web/5.2.1.RELEASE/spring-web-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-beans/5.2.1.RELEASE/spring-beans-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-webmvc/5.2.1.RELEASE/spring-webmvc-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-aop/5.2.1.RELEASE/spring-aop-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-context/5.2.1.RELEASE/spring-context-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-expression/5.2.1.RELEASE/spring-expression-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/2.2.1.RELEASE/spring-boot-starter-actuator-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/2.2.1.RELEASE/spring-boot-actuator-autoconfigure-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-actuator/2.2.1.RELEASE/spring-boot-actuator-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/io/micrometer/micrometer-core/1.3.1/micrometer-core-1.3.1.jar:/Users/cwang/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.11/HdrHistogram-2.1.11.jar:/Users/cwang/.m2/repository/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-amqp/2.2.1.RELEASE/spring-boot-starter-amqp-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-messaging/5.2.1.RELEASE/spring-messaging-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/amqp/spring-rabbit/2.2.1.RELEASE/spring-rabbit-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/com/rabbitmq/amqp-client/5.7.3/amqp-client-5.7.3.jar:/Users/cwang/.m2/repository/org/springframework/amqp/spring-amqp/2.2.1.RELEASE/spring-amqp-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/retry/spring-retry/1.2.4.RELEASE/spring-retry-1.2.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-tx/5.2.1.RELEASE/spring-tx-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-starter-openfeign/2.1.4.RELEASE/spring-cloud-starter-openfeign-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-starter/2.1.4.RELEASE/spring-cloud-starter-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-context/2.1.4.RELEASE/spring-cloud-context-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/security/spring-security-rsa/1.0.7.RELEASE/spring-security-rsa-1.0.7.RELEASE.jar:/Users/cwang/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.60/bcpkix-jdk15on-1.60.jar:/Users/cwang/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.60/bcprov-jdk15on-1.60.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-openfeign-core/2.1.4.RELEASE/spring-cloud-openfeign-core-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/io/github/openfeign/form/feign-form-spring/3.8.0/feign-form-spring-3.8.0.jar:/Users/cwang/.m2/repository/io/github/openfeign/form/feign-form/3.8.0/feign-form-3.8.0.jar:/Users/cwang/.m2/repository/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4.jar:/Users/cwang/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-commons/2.1.4.RELEASE/spring-cloud-commons-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/security/spring-security-crypto/5.2.1.RELEASE/spring-security-crypto-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/io/github/openfeign/feign-core/10.4.0/feign-core-10.4.0.jar:/Users/cwang/.m2/repository/io/github/openfeign/feign-slf4j/10.4.0/feign-slf4j-10.4.0.jar:/Users/cwang/.m2/repository/io/github/openfeign/feign-hystrix/10.4.0/feign-hystrix-10.4.0.jar:/Users/cwang/.m2/repository/com/netflix/archaius/archaius-core/0.7.6/archaius-core-0.7.6.jar:/Users/cwang/.m2/repository/com/netflix/hystrix/hystrix-core/1.5.18/hystrix-core-1.5.18.jar:/Users/cwang/.m2/repository/io/netty/netty-all/4.1.43.Final/netty-all-4.1.43.Final.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-starter-netflix-ribbon/2.1.4.RELEASE/spring-cloud-starter-netflix-ribbon-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-netflix-ribbon/2.1.4.RELEASE/spring-cloud-netflix-ribbon-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-netflix-archaius/2.1.4.RELEASE/spring-cloud-netflix-archaius-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/cloud/spring-cloud-starter-netflix-archaius/2.1.4.RELEASE/spring-cloud-starter-netflix-archaius-2.1.4.RELEASE.jar:/Users/cwang/.m2/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar:/Users/cwang/.m2/repository/com/netflix/ribbon/ribbon/2.3.0/ribbon-2.3.0.jar:/Users/cwang/.m2/repository/com/netflix/ribbon/ribbon-transport/2.3.0/ribbon-transport-2.3.0.jar:/Users/cwang/.m2/repository/io/reactivex/rxnetty-contexts/0.4.9/rxnetty-contexts-0.4.9.jar:/Users/cwang/.m2/repository/io/reactivex/rxnetty-servo/0.4.9/rxnetty-servo-0.4.9.jar:/Users/cwang/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/Users/cwang/.m2/repository/io/reactivex/rxnetty/0.4.9/rxnetty-0.4.9.jar:/Users/cwang/.m2/repository/com/netflix/ribbon/ribbon-core/2.3.0/ribbon-core-2.3.0.jar:/Users/cwang/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/cwang/.m2/repository/com/netflix/ribbon/ribbon-httpclient/2.3.0/ribbon-httpclient-2.3.0.jar:/Users/cwang/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/cwang/.m2/repository/com/sun/jersey/jersey-client/1.19.1/jersey-client-1.19.1.jar:/Users/cwang/.m2/repository/com/sun/jersey/jersey-core/1.19.1/jersey-core-1.19.1.jar:/Users/cwang/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/Users/cwang/.m2/repository/com/sun/jersey/contribs/jersey-apache-client4/1.19.1/jersey-apache-client4-1.19.1.jar:/Users/cwang/.m2/repository/com/netflix/servo/servo-core/0.12.21/servo-core-0.12.21.jar:/Users/cwang/.m2/repository/com/netflix/netflix-commons/netflix-commons-util/0.3.0/netflix-commons-util-0.3.0.jar:/Users/cwang/.m2/repository/com/netflix/ribbon/ribbon-loadbalancer/2.3.0/ribbon-loadbalancer-2.3.0.jar:/Users/cwang/.m2/repository/com/netflix/netflix-commons/netflix-statistics/0.1.1/netflix-statistics-0.1.1.jar:/Users/cwang/.m2/repository/io/reactivex/rxjava/1.3.8/rxjava-1.3.8.jar:/Users/cwang/.m2/repository/io/github/openfeign/feign-httpclient/10.4.0/feign-httpclient-10.4.0.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy/2.5.8/groovy-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-ant/2.5.8/groovy-ant-2.5.8.jar:/Users/cwang/.m2/repository/org/apache/ant/ant/1.9.13/ant-1.9.13.jar:/Users/cwang/.m2/repository/org/apache/ant/ant-junit/1.9.13/ant-junit-1.9.13.jar:/Users/cwang/.m2/repository/org/apache/ant/ant-launcher/1.9.13/ant-launcher-1.9.13.jar:/Users/cwang/.m2/repository/org/apache/ant/ant-antlr/1.9.13/ant-antlr-1.9.13.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-cli-commons/2.5.8/groovy-cli-commons-2.5.8.jar:/Users/cwang/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-cli-picocli/2.5.8/groovy-cli-picocli-2.5.8.jar:/Users/cwang/.m2/repository/info/picocli/picocli/4.0.1/picocli-4.0.1.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-console/2.5.8/groovy-console-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-datetime/2.5.8/groovy-datetime-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-docgenerator/2.5.8/groovy-docgenerator-2.5.8.jar:/Users/cwang/.m2/repository/com/thoughtworks/qdox/qdox/1.12.1/qdox-1.12.1.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-groovydoc/2.5.8/groovy-groovydoc-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-groovysh/2.5.8/groovy-groovysh-2.5.8.jar:/Users/cwang/.m2/repository/jline/jline/2.14.6/jline-2.14.6.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-jmx/2.5.8/groovy-jmx-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-json/2.5.8/groovy-json-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-jsr223/2.5.8/groovy-jsr223-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-macro/2.5.8/groovy-macro-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-nio/2.5.8/groovy-nio-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-servlet/2.5.8/groovy-servlet-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-sql/2.5.8/groovy-sql-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-swing/2.5.8/groovy-swing-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.8/groovy-templates-2.5.8.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-test/2.5.8/groovy-test-2.5.8.jar:/Users/cwang/.m2/repository/junit/junit/4.12/junit-4.12.jar:/Users/cwang/.m2/repository/org/hamcrest/hamcrest-core/2.1/hamcrest-core-2.1.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-test-junit5/2.5.8/groovy-test-junit5-2.5.8.jar:/Users/cwang/.m2/repository/org/junit/platform/junit-platform-launcher/1.5.2/junit-platform-launcher-1.5.2.jar:/Users/cwang/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar:/Users/cwang/.m2/repository/org/junit/platform/junit-platform-engine/1.5.2/junit-platform-engine-1.5.2.jar:/Users/cwang/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.5.2/junit-jupiter-engine-5.5.2.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-testng/2.5.8/groovy-testng-2.5.8.jar:/Users/cwang/.m2/repository/org/testng/testng/6.13.1/testng-6.13.1.jar:/Users/cwang/.m2/repository/com/beust/jcommander/1.72/jcommander-1.72.jar:/Users/cwang/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.8/groovy-xml-2.5.8.jar:/Users/cwang/.m2/repository/io/micrometer/micrometer-registry-influx/1.3.1/micrometer-registry-influx-1.3.1.jar:/Users/cwang/.m2/repository/org/slf4j/slf4j-api/1.7.29/slf4j-api-1.7.29.jar:/Users/cwang/.m2/repository/redis/clients/jedis/3.1.0/jedis-3.1.0.jar:/Users/cwang/.m2/repository/org/apache/commons/commons-pool2/2.7.0/commons-pool2-2.7.0.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.2.1.RELEASE/spring-boot-starter-data-jpa-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.2.1.RELEASE/spring-boot-starter-aop-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/aspectj/aspectjweaver/1.9.4/aspectjweaver-1.9.4.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.2.1.RELEASE/spring-boot-starter-jdbc-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/com/zaxxer/HikariCP/3.4.1/HikariCP-3.4.1.jar:/Users/cwang/.m2/repository/org/springframework/spring-jdbc/5.2.1.RELEASE/spring-jdbc-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar:/Users/cwang/.m2/repository/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.jar:/Users/cwang/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.jar:/Users/cwang/.m2/repository/org/hibernate/hibernate-core/5.4.8.Final/hibernate-core-5.4.8.Final.jar:/Users/cwang/.m2/repository/org/jboss/logging/jboss-logging/3.4.1.Final/jboss-logging-3.4.1.Final.jar:/Users/cwang/.m2/repository/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar:/Users/cwang/.m2/repository/net/bytebuddy/byte-buddy/1.10.2/byte-buddy-1.10.2.jar:/Users/cwang/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/cwang/.m2/repository/org/jboss/jandex/2.0.5.Final/jandex-2.0.5.Final.jar:/Users/cwang/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar:/Users/cwang/.m2/repository/org/dom4j/dom4j/2.1.1/dom4j-2.1.1.jar:/Users/cwang/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.1.0.Final/hibernate-commons-annotations-5.1.0.Final.jar:/Users/cwang/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar:/Users/cwang/.m2/repository/org/glassfish/jaxb/txw2/2.3.2/txw2-2.3.2.jar:/Users/cwang/.m2/repository/com/sun/istack/istack-commons-runtime/3.0.8/istack-commons-runtime-3.0.8.jar:/Users/cwang/.m2/repository/org/jvnet/staxex/stax-ex/1.8.1/stax-ex-1.8.1.jar:/Users/cwang/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.16/FastInfoset-1.2.16.jar:/Users/cwang/.m2/repository/org/springframework/data/spring-data-jpa/2.2.4.RELEASE/spring-data-jpa-2.2.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/data/spring-data-commons/2.2.4.RELEASE/spring-data-commons-2.2.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-orm/5.2.1.RELEASE/spring-orm-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-aspects/5.2.1.RELEASE/spring-aspects-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/redisson/redisson-spring-boot-starter/3.11.5/redisson-spring-boot-starter-3.11.5.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-data-redis/2.2.1.RELEASE/spring-boot-starter-data-redis-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/data/spring-data-redis/2.2.4.RELEASE/spring-data-redis-2.2.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/data/spring-data-keyvalue/2.2.4.RELEASE/spring-data-keyvalue-2.2.4.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-oxm/5.2.1.RELEASE/spring-oxm-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-context-support/5.2.1.RELEASE/spring-context-support-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/redisson/redisson/3.11.5/redisson-3.11.5.jar:/Users/cwang/.m2/repository/io/netty/netty-common/4.1.43.Final/netty-common-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-codec/4.1.43.Final/netty-codec-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-buffer/4.1.43.Final/netty-buffer-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-transport/4.1.43.Final/netty-transport-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-resolver/4.1.43.Final/netty-resolver-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-resolver-dns/4.1.43.Final/netty-resolver-dns-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-codec-dns/4.1.43.Final/netty-codec-dns-4.1.43.Final.jar:/Users/cwang/.m2/repository/javax/cache/cache-api/1.1.1/cache-api-1.1.1.jar:/Users/cwang/.m2/repository/io/projectreactor/reactor-core/3.3.0.RELEASE/reactor-core-3.3.0.RELEASE.jar:/Users/cwang/.m2/repository/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar:/Users/cwang/.m2/repository/io/reactivex/rxjava2/rxjava/2.2.14/rxjava-2.2.14.jar:/Users/cwang/.m2/repository/de/ruedigermoeller/fst/2.57/fst-2.57.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.10.0/jackson-dataformat-yaml-2.10.0.jar:/Users/cwang/.m2/repository/org/jodd/jodd-bean/5.0.13/jodd-bean-5.0.13.jar:/Users/cwang/.m2/repository/org/jodd/jodd-core/5.0.13/jodd-core-5.0.13.jar:/Users/cwang/.m2/repository/org/redisson/redisson-spring-data-21/3.11.5/redisson-spring-data-21-3.11.5.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-thymeleaf/2.2.1.RELEASE/spring-boot-starter-thymeleaf-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/thymeleaf/thymeleaf-spring5/3.0.11.RELEASE/thymeleaf-spring5-3.0.11.RELEASE.jar:/Users/cwang/.m2/repository/org/thymeleaf/thymeleaf/3.0.11.RELEASE/thymeleaf-3.0.11.RELEASE.jar:/Users/cwang/.m2/repository/org/attoparser/attoparser/2.0.5.RELEASE/attoparser-2.0.5.RELEASE.jar:/Users/cwang/.m2/repository/org/unbescape/unbescape/1.1.6.RELEASE/unbescape-1.1.6.RELEASE.jar:/Users/cwang/.m2/repository/org/thymeleaf/extras/thymeleaf-extras-java8time/3.0.4.RELEASE/thymeleaf-extras-java8time-3.0.4.RELEASE.jar:/Users/cwang/.m2/repository/mysql/mysql-connector-java/8.0.18/mysql-connector-java-8.0.18.jar:/Users/cwang/.m2/repository/com/google/guava/guava/29.0-jre/guava-29.0-jre.jar:/Users/cwang/.m2/repository/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:/Users/cwang/.m2/repository/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/cwang/.m2/repository/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/Users/cwang/.m2/repository/org/checkerframework/checker-qual/2.11.1/checker-qual-2.11.1.jar:/Users/cwang/.m2/repository/com/google/errorprone/error_prone_annotations/2.3.4/error_prone_annotations-2.3.4.jar:/Users/cwang/.m2/repository/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar:/Users/cwang/.m2/repository/com/alibaba/csp/sentinel-core/1.7.1/sentinel-core-1.7.1.jar:/Users/cwang/.m2/repository/org/apache/zookeeper/zookeeper/3.5.6/zookeeper-3.5.6.jar:/Users/cwang/.m2/repository/org/apache/zookeeper/zookeeper-jute/3.5.6/zookeeper-jute-3.5.6.jar:/Users/cwang/.m2/repository/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/Users/cwang/.m2/repository/io/netty/netty-handler/4.1.43.Final/netty-handler-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-transport-native-epoll/4.1.43.Final/netty-transport-native-epoll-4.1.43.Final.jar:/Users/cwang/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.43.Final/netty-transport-native-unix-common-4.1.43.Final.jar:/Users/cwang/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/cwang/.m2/repository/org/projectlombok/lombok/1.18.22/lombok-1.18.22.jar:/Users/cwang/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar:/Users/cwang/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.5.2/junit-jupiter-api-5.5.2.jar:/Users/cwang/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/Users/cwang/.m2/repository/org/junit/platform/junit-platform-commons/1.5.2/junit-platform-commons-1.5.2.jar:/Users/cwang/.m2/repository/org/hamcrest/hamcrest/2.1/hamcrest-2.1.jar:/Users/cwang/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar:/Users/cwang/.m2/repository/org/springframework/spring-core/5.2.1.RELEASE/spring-core-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/spring-jcl/5.2.1.RELEASE/spring-jcl-5.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar:/Users/cwang/.m2/repository/org/apache/httpcomponents/httpcore/4.4.12/httpcore-4.4.12.jar:/Users/cwang/.m2/repository/commons-codec/commons-codec/1.13/commons-codec-1.13.jar:/Users/cwang/.m2/repository/org/apache/httpcomponents/fluent-hc/4.5.9/fluent-hc-4.5.9.jar:/Users/cwang/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/cwang/.m2/repository/org/springframework/boot/spring-boot-starter-data-elasticsearch/2.2.1.RELEASE/spring-boot-starter-data-elasticsearch-2.2.1.RELEASE.jar:/Users/cwang/.m2/repository/org/springframework/data/spring-data-elasticsearch/3.2.4.RELEASE/spring-data-elasticsearch-3.2.4.RELEASE.jar:/Users/cwang/.m2/repository/joda-time/joda-time/2.10.5/joda-time-2.10.5.jar:/Users/cwang/.m2/repository/org/elasticsearch/client/transport/6.8.4/transport-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch/6.8.4/elasticsearch-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch-core/6.8.4/elasticsearch-core-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch-secure-sm/6.8.4/elasticsearch-secure-sm-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch-x-content/6.8.4/elasticsearch-x-content-6.8.4.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-smile/2.10.0/jackson-dataformat-smile-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.10.0/jackson-dataformat-cbor-2.10.0.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-core/7.7.2/lucene-core-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-analyzers-common/7.7.2/lucene-analyzers-common-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-backward-codecs/7.7.2/lucene-backward-codecs-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-grouping/7.7.2/lucene-grouping-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-highlighter/7.7.2/lucene-highlighter-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-join/7.7.2/lucene-join-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-memory/7.7.2/lucene-memory-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-misc/7.7.2/lucene-misc-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-queries/7.7.2/lucene-queries-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-queryparser/7.7.2/lucene-queryparser-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-sandbox/7.7.2/lucene-sandbox-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-spatial/7.7.2/lucene-spatial-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-spatial-extras/7.7.2/lucene-spatial-extras-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-spatial3d/7.7.2/lucene-spatial3d-7.7.2.jar:/Users/cwang/.m2/repository/org/apache/lucene/lucene-suggest/7.7.2/lucene-suggest-7.7.2.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch-cli/6.8.4/elasticsearch-cli-6.8.4.jar:/Users/cwang/.m2/repository/net/sf/jopt-simple/jopt-simple/5.0.2/jopt-simple-5.0.2.jar:/Users/cwang/.m2/repository/com/carrotsearch/hppc/0.7.1/hppc-0.7.1.jar:/Users/cwang/.m2/repository/com/tdunning/t-digest/3.2/t-digest-3.2.jar:/Users/cwang/.m2/repository/org/elasticsearch/jna/4.5.1/jna-4.5.1.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/reindex-client/6.8.4/reindex-client-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/elasticsearch-ssl-config/6.8.4/elasticsearch-ssl-config-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/lang-mustache-client/6.8.4/lang-mustache-client-6.8.4.jar:/Users/cwang/.m2/repository/com/github/spullara/mustache/java/compiler/0.9.3/compiler-0.9.3.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/percolator-client/6.8.4/percolator-client-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/parent-join-client/6.8.4/parent-join-client-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/rank-eval-client/6.8.4/rank-eval-client-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/transport-netty4-client/6.8.4/transport-netty4-client-6.8.4.jar:/Users/cwang/.m2/repository/io/netty/netty-codec-http/4.1.43.Final/netty-codec-http-4.1.43.Final.jar:/Users/cwang/.m2/repository/org/elasticsearch/client/elasticsearch-rest-high-level-client/6.8.4/elasticsearch-rest-high-level-client-6.8.4.jar:/Users/cwang/.m2/repository/org/elasticsearch/client/elasticsearch-rest-client/6.8.4/elasticsearch-rest-client-6.8.4.jar:/Users/cwang/.m2/repository/org/apache/httpcomponents/httpasyncclient/4.1.4/httpasyncclient-4.1.4.jar:/Users/cwang/.m2/repository/org/apache/httpcomponents/httpcore-nio/4.4.12/httpcore-nio-4.4.12.jar:/Users/cwang/.m2/repository/org/elasticsearch/plugin/aggs-matrix-stats-client/6.8.4/aggs-matrix-stats-client-6.8.4.jar:/Users/cwang/.m2/repository/org/influxdb/influxdb-java/2.17/influxdb-java-2.17.jar:/Users/cwang/.m2/repository/com/squareup/retrofit2/retrofit/2.6.2/retrofit-2.6.2.jar:/Users/cwang/.m2/repository/com/squareup/retrofit2/converter-moshi/2.6.2/converter-moshi-2.6.2.jar:/Users/cwang/.m2/repository/com/squareup/moshi/moshi/1.8.0/moshi-1.8.0.jar:/Users/cwang/.m2/repository/org/msgpack/msgpack-core/0.8.18/msgpack-core-0.8.18.jar:/Users/cwang/.m2/repository/com/squareup/okhttp3/okhttp/3.14.4/okhttp-3.14.4.jar:/Users/cwang/.m2/repository/com/squareup/okio/okio/1.17.2/okio-1.17.2.jar:/Users/cwang/.m2/repository/com/squareup/okhttp3/logging-interceptor/3.14.4/logging-interceptor-3.14.4.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-csv/2.10.0/jackson-dataformat-csv-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.10.0/jackson-databind-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.10.0/jackson-annotations-2.10.0.jar:/Users/cwang/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.10.0/jackson-core-2.10.0.jar:/Users/cwang/.m2/repository/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.1.1/mybatis-spring-boot-starter-2.1.1.jar:/Users/cwang/.m2/repository/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.1.1/mybatis-spring-boot-autoconfigure-2.1.1.jar:/Users/cwang/.m2/repository/org/mybatis/mybatis/3.5.3/mybatis-3.5.3.jar:/Users/cwang/.m2/repository/org/mybatis/mybatis-spring/2.0.3/mybatis-spring-2.0.3.jar org.geekbang.time.commonmistakes.oom.usernameautocomplete.CommonMistakesApplication
[22:32:01.376] [main] [INFO ] [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 ] - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$432e31cb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.1.RELEASE)

[22:32:01.468] [main] [INFO ] [o.g.t.c.o.u.CommonMistakesApplication:651 ] - No active profile set, falling back to default profiles: default
[22:32:02.055] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:249 ] - Multiple Spring Data modules found, entering strict repository configuration mode!
[22:32:02.056] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:127 ] - Bootstrapping Spring Data Elasticsearch repositories in DEFAULT mode.
[22:32:02.092] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationExtensionSupport:348 ] - Spring Data Elasticsearch - Could not safely identify store assignment for repository candidate interface org.geekbang.time.commonmistakes.oom.usernameautocomplete.UserRepository. If you want this repository to be a Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ElasticsearchRepository, org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository.
[22:32:02.092] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:187 ] - Finished Spring Data repository scanning in 32ms. Found 0 Elasticsearch repository interfaces.
[22:32:02.096] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:249 ] - Multiple Spring Data modules found, entering strict repository configuration mode!
[22:32:02.097] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:127 ] - Bootstrapping Spring Data Reactive Elasticsearch repositories in DEFAULT mode.
[22:32:02.099] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationExtensionSupport:348 ] - Spring Data Reactive Elasticsearch - Could not safely identify store assignment for repository candidate interface org.geekbang.time.commonmistakes.oom.usernameautocomplete.UserRepository. If you want this repository to be a Reactive Elasticsearch repository, consider annotating your entities with one of these annotations: org.springframework.data.elasticsearch.annotations.Document (preferred), or consider extending one of the following types with your repository: org.springframework.data.elasticsearch.repository.ReactiveElasticsearchRepository.
[22:32:02.099] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:187 ] - Finished Spring Data repository scanning in 2ms. Found 0 Reactive Elasticsearch repository interfaces.
[22:32:02.106] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:249 ] - Multiple Spring Data modules found, entering strict repository configuration mode!
[22:32:02.106] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:127 ] - Bootstrapping Spring Data JPA repositories in DEFAULT mode.
[22:32:02.142] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:187 ] - Finished Spring Data repository scanning in 32ms. Found 1 JPA repository interfaces.
[22:32:02.150] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:249 ] - Multiple Spring Data modules found, entering strict repository configuration mode!
[22:32:02.151] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:127 ] - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
[22:32:02.190] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationExtensionSupport:348 ] - Spring Data Redis - Could not safely identify store assignment for repository candidate interface org.geekbang.time.commonmistakes.oom.usernameautocomplete.UserRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
[22:32:02.190] [main] [INFO ] [o.s.d.r.c.RepositoryConfigurationDelegate:187 ] - Finished Spring Data repository scanning in 2ms. Found 0 Redis repository interfaces.
[22:32:02.298] [main] [WARN ] [o.m.spring.mapper.ClassPathMapperScanner:44  ] - No MyBatis mapper was found in '[org.geekbang.time.commonmistakes.oom.usernameautocomplete]' package. Please check your configuration.
[22:32:02.360] [main] [INFO ] [o.s.cloud.context.scope.GenericScope:295 ] - BeanFactory id=eb7ea3d1-c81d-3a6f-9274-5ba74aec0af8
[22:32:02.497] [main] [INFO ] [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 ] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[22:32:02.525] [main] [INFO ] [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 ] - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$432e31cb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[22:32:02.660] [main] [INFO ] [o.s.b.w.embedded.tomcat.TomcatWebServer:92  ] - Tomcat initialized with port(s): 45678 (http)
[22:32:02.665] [main] [INFO ] [o.apache.coyote.http11.Http11NioProtocol:173 ] - Initializing ProtocolHandler ["http-nio-45678"]
[22:32:02.665] [main] [INFO ] [org.apache.catalina.core.StandardService:173 ] - Starting service [Tomcat]
[22:32:02.665] [main] [INFO ] [org.apache.catalina.core.StandardEngine:173 ] - Starting Servlet engine: [Apache Tomcat/9.0.27]
[22:32:02.785] [main] [INFO ] [o.a.c.c.C.[Tomcat].[localhost].[/]:173 ] - Initializing Spring embedded WebApplicationContext
[22:32:02.785] [main] [INFO ] [o.s.web.context.ContextLoader:284 ] - Root WebApplicationContext: initialization completed in 1307 ms
[22:32:02.818] [main] [INFO ] [io.micrometer.influx.InfluxMeterRegistry:81  ] - publishing metrics to influx every 1m
[22:32:03.467] [main] [INFO ] [org.redisson.Version:41  ] - Redisson 3.11.5
[22:32:03.654] [redisson-netty-2-10] [INFO ] [o.r.c.pool.MasterPubSubConnectionPool:168 ] - 1 connections initialized for 127.0.0.1/127.0.0.1:6379
[22:32:03.659] [redisson-netty-2-19] [INFO ] [o.r.connection.pool.MasterConnectionPool:168 ] - 24 connections initialized for 127.0.0.1/127.0.0.1:6379
[22:32:03.856] [main] [DEBUG] [o.s.o.j.LocalContainerEntityManagerFactoryBean:361 ] - Building JPA container EntityManagerFactory for persistence unit 'default'
[22:32:03.867] [main] [INFO ] [o.hibernate.jpa.internal.util.LogHelper:31  ] - HHH000204: Processing PersistenceUnitInfo [name: default]
[22:32:03.924] [main] [INFO ] [org.hibernate.Version:46  ] - HHH000412: Hibernate Core {5.4.8.Final}
[22:32:04.015] [main] [INFO ] [org.hibernate.annotations.common.Version:49  ] - HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
[22:32:04.090] [main] [INFO ] [com.zaxxer.hikari.HikariDataSource:110 ] - HikariPool-1 - Starting...
[22:32:04.344] [main] [INFO ] [com.zaxxer.hikari.HikariDataSource:123 ] - HikariPool-1 - Start completed.
[22:32:04.361] [main] [INFO ] [org.hibernate.dialect.Dialect:172 ] - HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
[22:32:04.812] [main] [INFO ] [o.h.e.t.j.p.i.JtaPlatformInitiator:52  ] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
[22:32:04.817] [main] [INFO ] [o.s.o.j.LocalContainerEntityManagerFactoryBean:416 ] - Initialized JPA EntityManagerFactory for persistence unit 'default'
[22:32:04.890] [main] [DEBUG] [o.s.o.j.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler:305 ] - Creating new EntityManager for shared EntityManager invocation
[22:32:04.927] [main] [DEBUG] [o.s.o.j.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler:305 ] - Creating new EntityManager for shared EntityManager invocation
[22:32:04.958] [main] [DEBUG] [o.s.o.j.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler:305 ] - Creating new EntityManager for shared EntityManager invocation
[22:32:05.017] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:370 ] - Creating new transaction with name [org.springframework.data.jpa.repository.support.SimpleJpaRepository.saveAll]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
[22:32:05.018] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:393 ] - Opened new EntityManager [SessionImpl(373275593<open>)] for JPA transaction
[22:32:05.024] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:421 ] - Exposing JPA transaction as JDBC [org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle@13cc31df]
[22:32:05.091] [main] [WARN ] [o.h.engine.jdbc.spi.SqlExceptionHelper:137 ] - SQL Error: 1364, SQLState: HY000
[22:32:05.091] [main] [ERROR] [o.h.engine.jdbc.spi.SqlExceptionHelper:142 ] - Field 'age' doesn't have a default value
[22:32:05.097] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:834 ] - Initiating transaction rollback
[22:32:05.097] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:555 ] - Rolling back JPA transaction on EntityManager [SessionImpl(373275593<open>)]
[22:32:05.102] [main] [DEBUG] [o.s.orm.jpa.JpaTransactionManager:620 ] - Closing JPA EntityManager [SessionImpl(373275593<open>)] after transaction
[22:32:05.106] [main] [WARN ] [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext:558 ] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usernameAutoCompleteService': Invocation of init method failed; nested exception is org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
[22:32:05.107] [main] [INFO ] [o.s.o.j.LocalContainerEntityManagerFactoryBean:598 ] - Closing JPA EntityManagerFactory for persistence unit 'default'
[22:32:05.237] [main] [INFO ] [com.zaxxer.hikari.HikariDataSource:350 ] - HikariPool-1 - Shutdown initiated...
[22:32:05.242] [main] [INFO ] [com.zaxxer.hikari.HikariDataSource:352 ] - HikariPool-1 - Shutdown completed.
[22:32:05.243] [main] [INFO ] [org.apache.catalina.core.StandardService:173 ] - Stopping service [Tomcat]
[22:32:05.258] [main] [INFO ] [o.s.b.a.l.ConditionEvaluationReportLoggingListener:136 ] - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[22:32:05.268] [main] [ERROR] [o.springframework.boot.SpringApplication:826 ] - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usernameAutoCompleteService': Invocation of init method failed; nested exception is org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1795)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
    at org.geekbang.time.commonmistakes.oom.usernameautocomplete.CommonMistakesApplication.main(CommonMistakesApplication.java:10)
Caused by: org.springframework.orm.jpa.JpaSystemException: could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:353)
    at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:255)
    at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:528)
    at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)
    at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:178)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
    at com.sun.proxy.$Proxy124.saveAll(Unknown Source)
    at org.geekbang.time.commonmistakes.oom.usernameautocomplete.UsernameAutoCompleteService.wrong(UsernameAutoCompleteService.java:27)
    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:389)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157)
    ... 18 common frames omitted
Caused by: org.hibernate.exception.GenericJDBCException: could not execute statement
    at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99)
    at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200)
    at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:57)
    at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:43)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3106)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3699)
    at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:84)
    at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:645)
    at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:282)
    at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263)
    at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317)
    at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:335)
    at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:292)
    at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:198)
    at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:128)
    at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:271)
    at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:243)
    at org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:318)
    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:172)
    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:70)
    at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:108)
    at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:775)
    at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:762)
    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.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:314)
    at com.sun.proxy.$Proxy120.merge(Unknown Source)
    at org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:557)
    at org.springframework.data.jpa.repository.support.SimpleJpaRepository.saveAll(SimpleJpaRepository.java:588)
    at org.springframework.data.jpa.repository.support.SimpleJpaRepository.saveAll(SimpleJpaRepository.java:78)
    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.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:371)
    at org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:204)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:657)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:621)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:605)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:80)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
    ... 33 common frames omitted
Caused by: java.sql.SQLException: Field 'age' doesn't have a default value
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
    at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1092)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1040)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1347)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1025)
    at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
    at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
    at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
    ... 80 common frames omitted

Process finished with exit code 1
NeoYeK commented 1 year ago

你好,邮件已收到。我将尽快给您回复。

brookwc commented 1 year ago

I am using: openjdk version "1.8.0_312" mac OS bigsur: 11.2.2

JosephZhu1983 commented 1 year ago

建议你把表删除,可能是之前运行过其他例子,创建了user表

NeoYeK commented 1 year ago

你好,邮件已收到。我将尽快给您回复。