file-type

演示:使用ORM Lite进行Android对象持久化

5星 · 超过95%的资源 | 下载需积分: 10 | 324KB | 更新于2025-06-01 | 39 浏览量 | 72 下载量 举报 收藏
download 立即下载
标题“orm lite Demo”所指的知识点在于提供了一个实际的示例或案例来展示如何使用ORM Lite框架。ORM Lite是针对Android和其他Java应用的一个轻量级ORM解决方案,允许开发者以对象形式操作数据库。相较于完整的ORM解决方案,ORM Lite主要的优势在于它更加轻量级,并且易于集成和使用。 描述中提到的“orm Lite(Object Relationanl Mapping Lite)”是关键信息。ORM Lite是作为Java对象和关系数据库之间的一种映射工具,它简化了数据的存储和检索过程,允许开发者以Java对象的方式进行数据库操作,而无需直接编写SQL语句。通过使用注解或API,ORM Lite提供了对数据库表的映射、数据的CRUD(创建、读取、更新、删除)操作以及简单的查询机制。 标签“android 对象存储 持久”进一步强调了ORM Lite框架的应用场景,指出其特别适用于Android平台上的对象持久化存储。对象存储意味着可以将对象状态保存至存储介质,而持久化则是确保数据可以跨越程序运行周期持续存在。Android作为一个广泛使用的移动应用开发平台,需要有效的数据持久化方案来处理用户数据、配置信息等。 从文件名“ormlite”可以看出,压缩包内可能包含使用ORM Lite框架实现数据持久化的示例代码或项目文件。由于压缩包内文件名称列表只提供了一个文件名“ormlite”,我们不能确定其具体内容,但可以合理推测这应当是与ORM Lite框架相关的文件。 对于Android开发者而言,了解并掌握ORM Lite是十分有用的,因为它可以帮助他们更快地开发出数据层的逻辑,提高开发效率。它支持SQLite数据库,这是Android平台内置的轻量级数据库,适合移动设备的资源限制。在使用ORM Lite时,开发者通常需要: 1. 定义数据模型类,即那些将被持久化的对象。这些类会包含一些元数据注解,如@Table、@Column等,用来描述对象与数据库表的映射关系。 2. 创建数据库帮助类(通常继承自OrmLiteSqliteOpenHelper),用于管理数据库的创建和版本管理。 3. 使用DAO(数据访问对象)类来执行数据的CRUD操作。ORM Lite为常见数据库操作提供了一套简化的API。 4. 处理异常。当进行数据库操作时,可能会遇到各种错误,需要合理处理这些异常。 在使用过程中,开发者应当注意一些最佳实践,如使用事务来保证操作的原子性,以及通过合理的索引来提升查询效率。此外,由于ORM Lite是一个轻量级框架,它并没有提供完整的ORM功能,例如不支持继承映射或复杂的查询语句,因此开发者在面对复杂需求时可能需要直接使用SQL。 总结来说,ORM Lite提供了一种高效便捷的方式来处理Android应用中的数据持久化问题,尤其适合那些资源有限的设备和对开发效率要求较高的场景。开发者应该在掌握基本操作和API的基础上,合理评估是否适合采用ORM Lite来完成项目中的数据库操作,并在必要时结合SQL语句来实现复杂的数据操作。

相关推荐

filetype

"C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\bin\java.exe" "-javaagent:D:\IntelliJ IDEA Community Edition 2025.1.4.1\lib\idea_rt.jar=57570" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\charsets.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\dnsns.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\jaccess.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\localedata.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\nashorn.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunec.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\zipfs.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jce.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jfr.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jfxswt.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jsse.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\management-agent.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\resources.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\rt.jar;D:\r\basic-spring-boot\target\classes;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-validation\2.1.14.RELEASE\spring-boot-starter-validation-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter\2.1.14.RELEASE\spring-boot-starter-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot\2.1.14.RELEASE\spring-boot-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.14.RELEASE\spring-boot-autoconfigure-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.1.14.RELEASE\spring-boot-starter-logging-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\admin\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\admin\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;C:\Users\admin\.m2\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;C:\Users\admin\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\admin\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\admin\.m2\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;C:\Users\admin\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.34\tomcat-embed-el-9.0.34.jar;C:\Users\admin\.m2\repository\org\hibernate\validator\hibernate-validator\6.0.19.Final\hibernate-validator-6.0.19.Final.jar;C:\Users\admin\.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;C:\Users\admin\.m2\repository\org\jboss\logging\jboss-logging\3.3.3.Final\jboss-logging-3.3.3.Final.jar;C:\Users\admin\.m2\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.1.14.RELEASE\spring-boot-starter-data-jpa-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.14.RELEASE\spring-boot-starter-jdbc-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;C:\Users\admin\.m2\repository\org\springframework\spring-jdbc\5.1.15.RELEASE\spring-jdbc-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\javax\transaction\javax.transaction-api\1.3\javax.transaction-api-1.3.jar;C:\Users\admin\.m2\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;C:\Users\admin\.m2\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;C:\Users\admin\.m2\repository\org\hibernate\hibernate-core\5.3.17.Final\hibernate-core-5.3.17.Final.jar;C:\Users\admin\.m2\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;C:\Users\admin\.m2\repository\org\javassist\javassist\3.23.2-GA\javassist-3.23.2-GA.jar;C:\Users\admin\.m2\repository\net\bytebuddy\byte-buddy\1.9.16\byte-buddy-1.9.16.jar;C:\Users\admin\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\admin\.m2\repository\org\jboss\jandex\2.0.5.Final\jandex-2.0.5.Final.jar;C:\Users\admin\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\admin\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.0.4.Final\hibernate-commons-annotations-5.0.4.Final.jar;C:\Users\admin\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.1\jaxb-runtime-2.3.1.jar;C:\Users\admin\.m2\repository\org\glassfish\jaxb\txw2\2.3.1\txw2-2.3.1.jar;C:\Users\admin\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.7\istack-commons-runtime-3.0.7.jar;C:\Users\admin\.m2\repository\org\jvnet\staxex\stax-ex\1.8\stax-ex-1.8.jar;C:\Users\admin\.m2\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.15\FastInfoset-1.2.15.jar;C:\Users\admin\.m2\repository\org\springframework\data\spring-data-jpa\2.1.17.RELEASE\spring-data-jpa-2.1.17.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\data\spring-data-commons\2.1.17.RELEASE\spring-data-commons-2.1.17.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-orm\5.1.15.RELEASE\spring-orm-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-context\5.1.15.RELEASE\spring-context-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-tx\5.1.15.RELEASE\spring-tx-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-beans\5.1.15.RELEASE\spring-beans-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\admin\.m2\repository\org\springframework\spring-aspects\5.1.15.RELEASE\spring-aspects-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\com\mysql\mysql-connector-j\8.2.0\mysql-connector-j-8.2.0.jar;C:\Users\admin\.m2\repository\com\google\protobuf\protobuf-java\3.21.9\protobuf-java-3.21.9.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.1.14.RELEASE\spring-boot-starter-web-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.1.14.RELEASE\spring-boot-starter-json-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.10.4\jackson-databind-2.9.10.4.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.10\jackson-annotations-2.9.10.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.10\jackson-core-2.9.10.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.10\jackson-datatype-jdk8-2.9.10.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.10\jackson-datatype-jsr310-2.9.10.jar;C:\Users\admin\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.10\jackson-module-parameter-names-2.9.10.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.14.RELEASE\spring-boot-starter-tomcat-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.34\tomcat-embed-core-9.0.34.jar;C:\Users\admin\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.34\tomcat-embed-websocket-9.0.34.jar;C:\Users\admin\.m2\repository\org\springframework\spring-web\5.1.15.RELEASE\spring-web-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-webmvc\5.1.15.RELEASE\spring-webmvc-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-expression\5.1.15.RELEASE\spring-expression-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.1.14.RELEASE\spring-boot-starter-aop-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-aop\5.1.15.RELEASE\spring-aop-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.14.RELEASE\spring-boot-starter-actuator-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.14.RELEASE\spring-boot-actuator-autoconfigure-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\boot\spring-boot-actuator\2.1.14.RELEASE\spring-boot-actuator-2.1.14.RELEASE.jar;C:\Users\admin\.m2\repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;C:\Users\admin\.m2\repository\org\springframework\spring-core\5.1.15.RELEASE\spring-core-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\org\springframework\spring-jcl\5.1.15.RELEASE\spring-jcl-5.1.15.RELEASE.jar;C:\Users\admin\.m2\repository\com\alibaba\fastjson2\fastjson2\2.0.23\fastjson2-2.0.23.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-netty-shaded\1.56.0\grpc-netty-shaded-1.56.0.jar;C:\Users\admin\.m2\repository\com\google\guava\guava\31.1-android\guava-31.1-android.jar;C:\Users\admin\.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\admin\.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\admin\.m2\repository\org\checkerframework\checker-qual\3.12.0\checker-qual-3.12.0.jar;C:\Users\admin\.m2\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;C:\Users\admin\.m2\repository\com\google\errorprone\error_prone_annotations\2.18.0\error_prone_annotations-2.18.0.jar;C:\Users\admin\.m2\repository\io\perfmark\perfmark-api\0.26.0\perfmark-api-0.26.0.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-protobuf\1.56.0\grpc-protobuf-1.56.0.jar;C:\Users\admin\.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\admin\.m2\repository\com\google\api\grpc\proto-google-common-protos\2.17.0\proto-google-common-protos-2.17.0.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-protobuf-lite\1.56.0\grpc-protobuf-lite-1.56.0.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-stub\1.56.0\grpc-stub-1.56.0.jar;C:\Users\admin\.m2\repository\net\devh\grpc-spring-boot-starter\2.14.0.RELEASE\grpc-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\net\devh\grpc-server-spring-boot-starter\2.14.0.RELEASE\grpc-server-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\net\devh\grpc-server-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-server-spring-boot-autoconfigure-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\net\devh\grpc-common-spring-boot\2.14.0.RELEASE\grpc-common-spring-boot-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-core\1.51.0\grpc-core-1.51.0.jar;C:\Users\admin\.m2\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;C:\Users\admin\.m2\repository\com\google\android\annotations\4.1.1.4\annotations-4.1.1.4.jar;C:\Users\admin\.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.21\animal-sniffer-annotations-1.21.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-services\1.51.0\grpc-services-1.51.0.jar;C:\Users\admin\.m2\repository\com\google\protobuf\protobuf-java-util\3.21.7\protobuf-java-util-3.21.7.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-api\1.51.0\grpc-api-1.51.0.jar;C:\Users\admin\.m2\repository\io\grpc\grpc-context\1.51.0\grpc-context-1.51.0.jar;C:\Users\admin\.m2\repository\net\devh\grpc-client-spring-boot-starter\2.14.0.RELEASE\grpc-client-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\net\devh\grpc-client-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-client-spring-boot-autoconfigure-2.14.0.RELEASE.jar;C:\Users\admin\.m2\repository\io\micrometer\micrometer-core\1.11.4\micrometer-core-1.11.4.jar;C:\Users\admin\.m2\repository\io\micrometer\micrometer-commons\1.11.4\micrometer-commons-1.11.4.jar;C:\Users\admin\.m2\repository\io\micrometer\micrometer-observation\1.11.4\micrometer-observation-1.11.4.jar;C:\Users\admin\.m2\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;C:\Users\admin\.m2\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar" com.tplink.nbu.demo.basicspringboot.GrpcClient 11:38:31.760 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 11:38:31.764 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 11:38:31.764 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - Java version: 8 11:38:31.764 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - direct buffer constructor: available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available 11:38:31.765 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available 11:38:31.766 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\admin\AppData\Local\Temp (java.io.tmpdir) 11:38:31.766 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 11:38:31.766 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - Platform: Windows 11:38:31.767 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 7570718720 bytes 11:38:31.767 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 11:38:31.767 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available 11:38:31.767 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 11:38:31.905 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 48 11:38:31.912 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 11:38:31.912 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 11:38:31.915 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 11:38:31.915 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 11:38:31.918 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available 11:38:32.087 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector - -Dio.grpc.netty.shaded.io.netty.leakDetection.level: simple 11:38:32.087 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector - -Dio.grpc.netty.shaded.io.netty.leakDetection.targetRecords: 4 11:38:32.090 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.AbstractByteBuf - -Dio.grpc.netty.shaded.io.netty.buffer.checkAccessible: true 11:38:32.090 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.AbstractByteBuf - -Dio.grpc.netty.shaded.io.netty.buffer.checkBounds: true 11:38:32.090 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@7f0df18 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 48 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 48 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false 11:38:32.117 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023 11:38:32.135 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.channel.DefaultChannelId - -Dio.netty.processId: 8460 (auto-detected) 11:38:32.136 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 11:38:32.136 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 11:38:32.176 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtilInitializations - Loopback interface: lo (Software Loopback Interface 1, 127.0.0.1) 11:38:32.176 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file \proc\sys\net\core\somaxconn. Default: 200 11:38:32.179 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.channel.DefaultChannelId - -Dio.netty.machineId: a0:ad:9f:ff:fe:1d:8c:93 (auto-detected) 11:38:32.189 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled 11:38:32.189 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0 11:38:32.189 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 11:38:32.196 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096 11:38:32.196 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8 11:38:32.196 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32 11:38:32.196 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.blocking: false 11:38:32.207 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192} 11:38:32.211 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041 11:38:32.256 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] INBOUND SETTINGS: ack=false settings={MAX_CONCURRENT_STREAMS=2147483647, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192} 11:38:32.257 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND SETTINGS: ack=true 11:38:32.265 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] INBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041 11:38:32.266 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] INBOUND SETTINGS: ack=true 11:38:32.271 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND HEADERS: streamId=3 headers=GrpcHttp2OutboundHeaders[:authority: localhost:9090, :path: /UserGrpcService/Register, :method: POST, :scheme: http, content-type: application/grpc, te: trailers, user-agent: grpc-java-netty/1.51.0, grpc-accept-encoding: gzip] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false 11:38:32.277 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND DATA: streamId=3 padding=0 endStream=true length=49 bytes=000000002c0a08746573745573657212063132333435361a1074657374406578616d706c652e636f6d2206e58c97e4baac 11:38:32.302 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] INBOUND PING: ack=false bytes=1234 11:38:32.302 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] OUTBOUND PING: ack=true bytes=1234 11:38:32.308 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xf85c2e3d, L:/127.0.0.1:57623 - R:localhost/127.0.0.1:9090] INBOUND HEADERS: streamId=3 headers=GrpcHttp2ResponseHeaders[:status: 200, content-type: application/grpc, grpc-status: 12, grpc-message: Method not found: UserGrpcService/Register] padding=0 endStream=true 【注册失败】原因:Method not found: UserGrpcService/Register,请分析并修改,源代码如下public class GrpcClient { private final ManagedChannel channel; private final UserGrpcServiceGrpc.UserGrpcServiceFutureStub futureStub; private final CountDownLatch latch = new CountDownLatch(3); public GrpcClient(String host, int port) { this.channel = ManagedChannelBuilder.forAddress(host, port) .usePlaintext() .build(); this.futureStub = UserGrpcServiceGrpc.newFutureStub(channel); } // 异步注册(触发后续登录) public void asyncRegister(String username, String password, String email, String address) { UserRegisterRequest request = UserRegisterRequest.newBuilder() .setUsername(username) .setPassword(password) .setEmail(email) .setAddress(address) .build(); ListenableFuture<UserRegisterResponse> responseFuture = futureStub.register(request); responseFuture.addListener(() -> { try { UserRegisterResponse response = responseFuture.get(); System.out.println("【注册结果】成功:" + response.getSuccess() + ",消息:" + response.getMessage()); if (response.getSuccess()) { // 注册成功后触发登录(使用相同邮箱和密码) asyncLogin(email, password); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【注册中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【注册失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 注册操作完成 } }, MoreExecutors.directExecutor()); } // 异步登录(触发后续登出) private void asyncLogin(String email, String password) { UserLoginRequest request = UserLoginRequest.newBuilder() .setEmail(email) .setPassword(password) .build(); ListenableFuture<UserLoginResponse> responseFuture = futureStub.login(request); responseFuture.addListener(() -> { try { UserLoginResponse response = responseFuture.get(); System.out.println("【登录结果】token:" + response.getToken() + ",用户ID:" + response.getUserId()); if (!response.getToken().isEmpty()) { // 登录成功后触发登出 asyncLogout(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【登录中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【登录失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 登录操作完成 } }, MoreExecutors.directExecutor()); } // 异步登出 private void asyncLogout() { UserLogoutRequest request = UserLogoutRequest.newBuilder().build(); ListenableFuture<UserLogoutResponse> responseFuture = futureStub.logout(request); responseFuture.addListener(() -> { try { UserLogoutResponse response = responseFuture.get(); System.out.println("【登出结果】成功:" + response.getSuccess() + ",消息:" + response.getMessage()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【登出中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【登出失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 登出操作完成 } }, MoreExecutors.directExecutor()); } // 等待所有操作完成后关闭通道 public void shutdown() throws InterruptedException { latch.await(); // 阻塞直到所有操作完成 channel.shutdown(); } public static void main(String[] args) throws InterruptedException { GrpcClient client = new GrpcClient("localhost", 9090); // 启动注册流程(触发后续登录、登出) client.asyncRegister("testUser", "123456", "[email protected]", "北京"); // 等待所有操作完成后关闭客户端 client.shutdown(); } }

filetype

public class GrpcClient { private final ManagedChannel channel; private final UserGrpcServiceGrpc.UserGrpcServiceFutureStub futureStub; private final CountDownLatch latch = new CountDownLatch(3); public GrpcClient(String host, int port) { this.channel = ManagedChannelBuilder.forAddress(host, port) .usePlaintext() .build(); this.futureStub = UserGrpcServiceGrpc.newFutureStub(channel); } // 异步注册(触发后续登录) public void asyncRegister(String username, String password, String email, String address) { UserRegisterRequest request = UserRegisterRequest.newBuilder() .setUsername(username) .setPassword(password) .setEmail(email) .setAddress(address) .build(); ListenableFuture<UserRegisterResponse> responseFuture = futureStub.register(request); responseFuture.addListener(() -> { try { UserRegisterResponse response = responseFuture.get(); System.out.println("【注册结果】成功:" + response.getSuccess() + ",消息:" + response.getMessage()); if (response.getSuccess()) { // 注册成功后触发登录(使用相同邮箱和密码) asyncLogin(email, password); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【注册中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【注册失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 注册操作完成 } }, MoreExecutors.directExecutor()); } // 异步登录(触发后续登出) private void asyncLogin(String email, String password) { UserLoginRequest request = UserLoginRequest.newBuilder() .setEmail(email) .setPassword(password) .build(); ListenableFuture<UserLoginResponse> responseFuture = futureStub.login(request); responseFuture.addListener(() -> { try { UserLoginResponse response = responseFuture.get(); System.out.println("【登录结果】token:" + response.getToken() + ",用户ID:" + response.getUserId()); if (!response.getToken().isEmpty()) { // 登录成功后触发登出 asyncLogout(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【登录中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【登录失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 登录操作完成 } }, MoreExecutors.directExecutor()); } // 异步登出 private void asyncLogout() { UserLogoutRequest request = UserLogoutRequest.newBuilder().build(); ListenableFuture<UserLogoutResponse> responseFuture = futureStub.logout(request); responseFuture.addListener(() -> { try { UserLogoutResponse response = responseFuture.get(); System.out.println("【登出结果】成功:" + response.getSuccess() + ",消息:" + response.getMessage()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); System.err.println("【登出中断】原因:" + e.getMessage()); } catch (ExecutionException e) { Status status = Status.fromThrowable(e.getCause()); System.err.println("【登出失败】原因:" + status.getDescription()); } finally { latch.countDown(); // 登出操作完成 } }, MoreExecutors.directExecutor()); } // 等待所有操作完成后关闭通道 public void shutdown() throws InterruptedException { latch.await(); // 阻塞直到所有操作完成 channel.shutdown(); } public static void main(String[] args) throws InterruptedException { GrpcClient client = new GrpcClient("localhost", 9090); // 启动注册流程(触发后续登录、登出) client.asyncRegister("testUser", "123456", "[email protected]", "北京"); // 等待所有操作完成后关闭客户端 client.shutdown(); } }@Service public class UserGrpcServiceImpl extends UserGrpcServiceGrpc.UserGrpcServiceImplBase { private final UserService userService; private final Counter emailDuplicateCounter; @Autowired public UserGrpcServiceImpl(UserService userService, MeterRegistry meterRegistry) { this.userService = userService; this.emailDuplicateCounter = meterRegistry.counter("register.email.duplicate"); } // 注册接口实现(异步非阻塞由gRPC自动处理) @Override public void register(UserRegisterRequest request, StreamObserver<UserRegisterResponse> responseObserver) { UserInfo user = UserInfo.builder() .username(request.getUsername()) .password(request.getPassword()) .email(request.getEmail()) .address(request.getAddress()) .build(); try { userService.register(user); // 复用原有注册逻辑 UserRegisterResponse response = UserRegisterResponse.newBuilder() .setSuccess(true) .setMessage("注册成功") .build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (RuntimeException e) { // 转换异常为gRPC状态码 Status status = e.getMessage().contains("邮箱已注册") ? Status.ALREADY_EXISTS.withDescription(e.getMessage()) : Status.RESOURCE_EXHAUSTED.withDescription(e.getMessage()); responseObserver.onError(status.asRuntimeException()); } } // 登录接口实现 @Override public void login(UserLoginRequest request, StreamObserver<UserLoginResponse> responseObserver) { try { UserLoginSuccessDTO dto = userService.login(request.getEmail(), request.getPassword()); UserLoginResponse response = UserLoginResponse.newBuilder() .setToken(dto.getToken()) .setUserId(dto.getUserId()) .setUsername(dto.getUsername()) .setEmail(dto.getEmail()) .setAddress(dto.getAddress()) .build(); responseObserver.onNext(response); responseObserver.onCompleted(); } catch (UnauthorizedException e) { responseObserver.onError(Status.UNAUTHENTICATED.withDescription(e.getMessage()).asRuntimeException()); //Unauthenticated } } // 退出接口实现(简化处理) @Override public void logout(UserLogoutRequest request, StreamObserver responseObserver) { UserLogoutResponse response = UserLogoutResponse.newBuilder() .setSuccess(true) .setMessage(“退出成功”) .build(); responseObserver.onNext(response); responseObserver.onCompleted(); } }syntax = “proto3”; option java_multiple_files = true; option java_package = “com.tplink.nbu.demo.basicspringboot.grpc”; option java_outer_classname = “UserGrpcProto”; // 定义用户服务 service UserGrpcService { // 注册接口(异步非阻塞) rpc Register (UserRegisterRequest) returns (UserRegisterResponse); // 登录接口(异步非阻塞) rpc Login (UserLoginRequest) returns (UserLoginResponse); // 退出接口(异步非阻塞) rpc Logout (UserLogoutRequest) returns (UserLogoutResponse); } // 注册请求消息 message UserRegisterRequest { string username = 1; string password = 2; string email = 3; string address = 4; } // 注册响应消息 message UserRegisterResponse { bool success = 1; string message = 2; } // 登录请求消息 message UserLoginRequest { string email = 1; string password = 2; } // 登录响应消息(含token和用户信息) message UserLoginResponse { string token = 1; int64 user_id = 2; string username = 3; string email = 4; string address = 5; } // 退出请求消息(无参数) message UserLogoutRequest {} // 退出响应消息 message UserLogoutResponse { bool success = 1; string message = 2; }客户端运行结果如下"C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\bin\java.exe" “-javaagent:D:\IntelliJ IDEA Community Edition 2025.1.4.1\lib\idea_rt.jar=57846” -Dfile.encoding=UTF-8 -classpath “C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\charsets.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\dnsns.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\jaccess.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\localedata.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\nashorn.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunec.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\ext\zipfs.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jce.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jfr.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jfxswt.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\jsse.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\management-agent.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\resources.jar;C:\Program Files\Java\openlogic-openjdk-8u462-b08-windows-x64\jre\lib\rt.jar;D:\r\basic-spring-boot\target\classes;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-validation\2.1.14.RELEASE\spring-boot-starter-validation-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter\2.1.14.RELEASE\spring-boot-starter-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot\2.1.14.RELEASE\spring-boot-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.14.RELEASE\spring-boot-autoconfigure-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.1.14.RELEASE\spring-boot-starter-logging-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\admin.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\admin.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;C:\Users\admin.m2\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;C:\Users\admin.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\admin.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\admin.m2\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;C:\Users\admin.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.34\tomcat-embed-el-9.0.34.jar;C:\Users\admin.m2\repository\org\hibernate\validator\hibernate-validator\6.0.19.Final\hibernate-validator-6.0.19.Final.jar;C:\Users\admin.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;C:\Users\admin.m2\repository\org\jboss\logging\jboss-logging\3.3.3.Final\jboss-logging-3.3.3.Final.jar;C:\Users\admin.m2\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.1.14.RELEASE\spring-boot-starter-data-jpa-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.14.RELEASE\spring-boot-starter-jdbc-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;C:\Users\admin.m2\repository\org\springframework\spring-jdbc\5.1.15.RELEASE\spring-jdbc-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\javax\transaction\javax.transaction-api\1.3\javax.transaction-api-1.3.jar;C:\Users\admin.m2\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;C:\Users\admin.m2\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;C:\Users\admin.m2\repository\org\hibernate\hibernate-core\5.3.17.Final\hibernate-core-5.3.17.Final.jar;C:\Users\admin.m2\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;C:\Users\admin.m2\repository\org\javassist\javassist\3.23.2-GA\javassist-3.23.2-GA.jar;C:\Users\admin.m2\repository\net\bytebuddy\byte-buddy\1.9.16\byte-buddy-1.9.16.jar;C:\Users\admin.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\admin.m2\repository\org\jboss\jandex\2.0.5.Final\jandex-2.0.5.Final.jar;C:\Users\admin.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\admin.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.0.4.Final\hibernate-commons-annotations-5.0.4.Final.jar;C:\Users\admin.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.1\jaxb-runtime-2.3.1.jar;C:\Users\admin.m2\repository\org\glassfish\jaxb\txw2\2.3.1\txw2-2.3.1.jar;C:\Users\admin.m2\repository\com\sun\istack\istack-commons-runtime\3.0.7\istack-commons-runtime-3.0.7.jar;C:\Users\admin.m2\repository\org\jvnet\staxex\stax-ex\1.8\stax-ex-1.8.jar;C:\Users\admin.m2\repository\com\sun\xml\fastinfoset\FastInfoset\1.2.15\FastInfoset-1.2.15.jar;C:\Users\admin.m2\repository\org\springframework\data\spring-data-jpa\2.1.17.RELEASE\spring-data-jpa-2.1.17.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\data\spring-data-commons\2.1.17.RELEASE\spring-data-commons-2.1.17.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-orm\5.1.15.RELEASE\spring-orm-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-context\5.1.15.RELEASE\spring-context-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-tx\5.1.15.RELEASE\spring-tx-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-beans\5.1.15.RELEASE\spring-beans-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\admin.m2\repository\org\springframework\spring-aspects\5.1.15.RELEASE\spring-aspects-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\com\mysql\mysql-connector-j\8.2.0\mysql-connector-j-8.2.0.jar;C:\Users\admin.m2\repository\com\google\protobuf\protobuf-java\3.21.9\protobuf-java-3.21.9.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-web\2.1.14.RELEASE\spring-boot-starter-web-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-json\2.1.14.RELEASE\spring-boot-starter-json-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.10.4\jackson-databind-2.9.10.4.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.10\jackson-annotations-2.9.10.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.10\jackson-core-2.9.10.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.10\jackson-datatype-jdk8-2.9.10.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.10\jackson-datatype-jsr310-2.9.10.jar;C:\Users\admin.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.10\jackson-module-parameter-names-2.9.10.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.14.RELEASE\spring-boot-starter-tomcat-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.34\tomcat-embed-core-9.0.34.jar;C:\Users\admin.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.34\tomcat-embed-websocket-9.0.34.jar;C:\Users\admin.m2\repository\org\springframework\spring-web\5.1.15.RELEASE\spring-web-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-webmvc\5.1.15.RELEASE\spring-webmvc-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-expression\5.1.15.RELEASE\spring-expression-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.1.14.RELEASE\spring-boot-starter-aop-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-aop\5.1.15.RELEASE\spring-aop-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.14.RELEASE\spring-boot-starter-actuator-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.14.RELEASE\spring-boot-actuator-autoconfigure-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\boot\spring-boot-actuator\2.1.14.RELEASE\spring-boot-actuator-2.1.14.RELEASE.jar;C:\Users\admin.m2\repository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;C:\Users\admin.m2\repository\org\springframework\spring-core\5.1.15.RELEASE\spring-core-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\org\springframework\spring-jcl\5.1.15.RELEASE\spring-jcl-5.1.15.RELEASE.jar;C:\Users\admin.m2\repository\com\alibaba\fastjson2\fastjson2\2.0.23\fastjson2-2.0.23.jar;C:\Users\admin.m2\repository\io\grpc\grpc-netty-shaded\1.56.0\grpc-netty-shaded-1.56.0.jar;C:\Users\admin.m2\repository\com\google\guava\guava\31.1-android\guava-31.1-android.jar;C:\Users\admin.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\admin.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\admin.m2\repository\org\checkerframework\checker-qual\3.12.0\checker-qual-3.12.0.jar;C:\Users\admin.m2\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;C:\Users\admin.m2\repository\com\google\errorprone\error_prone_annotations\2.18.0\error_prone_annotations-2.18.0.jar;C:\Users\admin.m2\repository\io\perfmark\perfmark-api\0.26.0\perfmark-api-0.26.0.jar;C:\Users\admin.m2\repository\io\grpc\grpc-protobuf\1.56.0\grpc-protobuf-1.56.0.jar;C:\Users\admin.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\admin.m2\repository\com\google\api\grpc\proto-google-common-protos\2.17.0\proto-google-common-protos-2.17.0.jar;C:\Users\admin.m2\repository\io\grpc\grpc-protobuf-lite\1.56.0\grpc-protobuf-lite-1.56.0.jar;C:\Users\admin.m2\repository\io\grpc\grpc-stub\1.56.0\grpc-stub-1.56.0.jar;C:\Users\admin.m2\repository\net\devh\grpc-spring-boot-starter\2.14.0.RELEASE\grpc-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\net\devh\grpc-server-spring-boot-starter\2.14.0.RELEASE\grpc-server-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\net\devh\grpc-server-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-server-spring-boot-autoconfigure-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\net\devh\grpc-common-spring-boot\2.14.0.RELEASE\grpc-common-spring-boot-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\io\grpc\grpc-core\1.51.0\grpc-core-1.51.0.jar;C:\Users\admin.m2\repository\com\google\code\gson\gson\2.8.6\gson-2.8.6.jar;C:\Users\admin.m2\repository\com\google\android\annotations\4.1.1.4\annotations-4.1.1.4.jar;C:\Users\admin.m2\repository\org\codehaus\mojo\animal-sniffer-annotations\1.21\animal-sniffer-annotations-1.21.jar;C:\Users\admin.m2\repository\io\grpc\grpc-services\1.51.0\grpc-services-1.51.0.jar;C:\Users\admin.m2\repository\com\google\protobuf\protobuf-java-util\3.21.7\protobuf-java-util-3.21.7.jar;C:\Users\admin.m2\repository\io\grpc\grpc-api\1.51.0\grpc-api-1.51.0.jar;C:\Users\admin.m2\repository\io\grpc\grpc-context\1.51.0\grpc-context-1.51.0.jar;C:\Users\admin.m2\repository\net\devh\grpc-client-spring-boot-starter\2.14.0.RELEASE\grpc-client-spring-boot-starter-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\net\devh\grpc-client-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-client-spring-boot-autoconfigure-2.14.0.RELEASE.jar;C:\Users\admin.m2\repository\io\micrometer\micrometer-core\1.11.4\micrometer-core-1.11.4.jar;C:\Users\admin.m2\repository\io\micrometer\micrometer-commons\1.11.4\micrometer-commons-1.11.4.jar;C:\Users\admin.m2\repository\io\micrometer\micrometer-observation\1.11.4\micrometer-observation-1.11.4.jar;C:\Users\admin.m2\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;C:\Users\admin.m2\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar” com.tplink.nbu.demo.basicspringboot.GrpcClient 11:44:37.435 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 11:44:37.438 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 11:44:37.438 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - Java version: 8 11:44:37.439 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 11:44:37.439 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 11:44:37.439 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available 11:44:37.439 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - direct buffer constructor: available 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): available 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\admin\AppData\Local\Temp (java.io.tmpdir) 11:44:37.440 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 11:44:37.441 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - Platform: Windows 11:44:37.441 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 7570718720 bytes 11:44:37.441 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 11:44:37.442 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available 11:44:37.442 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 11:44:37.583 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 48 11:44:37.590 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 11:44:37.591 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 11:44:37.593 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 11:44:37.593 [main] DEBUG io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 11:44:37.597 [main] DEBUG io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available 11:44:37.768 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector - -Dio.grpc.netty.shaded.io.netty.leakDetection.level: simple 11:44:37.768 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector - -Dio.grpc.netty.shaded.io.netty.leakDetection.targetRecords: 4 11:44:37.770 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.AbstractByteBuf - -Dio.grpc.netty.shaded.io.netty.buffer.checkAccessible: true 11:44:37.772 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.AbstractByteBuf - -Dio.grpc.netty.shaded.io.netty.buffer.checkBounds: true 11:44:37.772 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.grpc.netty.shaded.io.netty.util.ResourceLeakDetector@5023e79d 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 48 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 48 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false 11:44:37.800 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023 11:44:37.818 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.channel.DefaultChannelId - -Dio.netty.processId: 27564 (auto-detected) 11:44:37.819 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 11:44:37.819 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 11:44:37.858 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtilInitializations - Loopback interface: lo (Software Loopback Interface 1, 127.0.0.1) 11:44:37.859 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file \proc\sys\net\core\somaxconn. Default: 200 11:44:37.862 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.channel.DefaultChannelId - -Dio.netty.machineId: a0:ad:9f:ff:fe:1d:8c:93 (auto-detected) 11:44:37.872 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled 11:44:37.872 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0 11:44:37.872 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 11:44:37.878 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096 11:44:37.878 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8 11:44:37.878 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32 11:44:37.878 [grpc-default-executor-0] DEBUG io.grpc.netty.shaded.io.netty.util.Recycler - -Dio.netty.recycler.blocking: false 11:44:37.890 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192} 11:44:37.894 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041 11:44:37.939 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] INBOUND SETTINGS: ack=false settings={MAX_CONCURRENT_STREAMS=2147483647, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192} 11:44:37.940 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND SETTINGS: ack=true 11:44:37.948 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] INBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041 11:44:37.949 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] INBOUND SETTINGS: ack=true 11:44:37.954 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND HEADERS: streamId=3 headers=GrpcHttp2OutboundHeaders[:authority: localhost:9090, :path: /UserGrpcService/Register, :method: POST, :scheme: http, content-type: application/grpc, te: trailers, user-agent: grpc-java-netty/1.51.0, grpc-accept-encoding: gzip] streamDependency=0 weight=16 exclusive=false padding=0 endStream=false 11:44:37.960 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND DATA: streamId=3 padding=0 endStream=true length=49 bytes=000000002c0a08746573745573657212063132333435361a1074657374406578616d706c652e636f6d2206e58c97e4baac 11:44:37.984 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] INBOUND PING: ack=false bytes=1234 11:44:37.984 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] OUTBOUND PING: ack=true bytes=1234 11:44:37.989 [grpc-nio-worker-ELG-1-2] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0xe18f6953, L:/127.0.0.1:57899 - R:localhost/127.0.0.1:9090] INBOUND HEADERS: streamId=3 headers=GrpcHttp2ResponseHeaders[:status: 200, content-type: application/grpc, grpc-status: 12, grpc-message: Method not found: UserGrpcService/Register] padding=0 endStream=true 【注册失败】原因:Method not found: UserGrpcService/Register请分析并解决

filetype

D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.6\lib\idea_rt.jar=65370" -javaagent:C:\Users\admin\AppData\Local\JetBrains\IntelliJIdea2024.3\captureAgent\debugger-agent.jar -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false -Ddebugger.agent.enable.coroutines=true -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true -Dfile.encoding=UTF-8 -classpath "D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.6\lib\idea_rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.6\plugins\junit\lib\junit5-rt.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2024.3.6\plugins\junit\lib\junit-rt.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\charsets.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\access-bridge-64.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\cldrdata.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\dnsns.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\jaccess.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\jfxrt.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\localedata.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\nashorn.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\sunec.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\sunjce_provider.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\sunmscapi.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\sunpkcs11.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\ext\zipfs.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\jce.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\jfr.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\jfxswt.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\jsse.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\management-agent.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\resources.jar;D:\java\openlogic-openjdk-8u362-b09-windows-64\openlogic-openjdk-8u362-b09-windows-64\jre\lib\rt.jar;F:\lee\work\training-2025\litailong\basic-spring-boot\target\test-classes;F:\lee\work\training-2025\litailong\basic-spring-boot\target\classes;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-validation\2.7.18\spring-boot-starter-validation-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter\2.7.18\spring-boot-starter-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot\2.7.18\spring-boot-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-autoconfigure\2.7.18\spring-boot-autoconfigure-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-logging\2.7.18\spring-boot-starter-logging-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\ch\qos\logback\logback-classic\1.2.12\logback-classic-1.2.12.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\ch\qos\logback\logback-core\1.2.12\logback-core-1.2.12.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.83\tomcat-embed-el-9.0.83.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-web\2.7.18\spring-boot-starter-web-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-json\2.7.18\spring-boot-starter-json-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.5\jackson-datatype-jdk8-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.5\jackson-datatype-jsr310-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.5\jackson-module-parameter-names-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-tomcat\2.7.18\spring-boot-starter-tomcat-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.83\tomcat-embed-core-9.0.83.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.83\tomcat-embed-websocket-9.0.83.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-web\5.3.31\spring-web-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-beans\5.3.31\spring-beans-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-webmvc\5.3.31\spring-webmvc-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-context\5.3.31\spring-context-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-expression\5.3.31\spring-expression-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-aop\2.7.18\spring-boot-starter-aop-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-aop\5.3.31\spring-aop-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\projectlombok\lombok\1.18.30\lombok-1.18.30.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-test\2.7.18\spring-boot-starter-test-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-test\2.7.18\spring-boot-test-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.7.18\spring-boot-test-autoconfigure-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\jayway\jsonpath\json-path\2.7.0\json-path-2.7.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\minidev\json-smart\2.4.11\json-smart-2.4.11.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\minidev\accessors-smart\2.4.11\accessors-smart-2.4.11.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\ow2\asm\asm\9.3\asm-9.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\assertj\assertj-core\3.22.0\assertj-core-3.22.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\jupiter\junit-jupiter\5.8.2\junit-jupiter-5.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\jupiter\junit-jupiter-api\5.8.2\junit-jupiter-api-5.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\opentest4j\opentest4j\1.2.0\opentest4j-1.2.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\platform\junit-platform-commons\1.8.2\junit-platform-commons-1.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\apiguardian\apiguardian-api\1.1.2\apiguardian-api-1.1.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\jupiter\junit-jupiter-params\5.8.2\junit-jupiter-params-5.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\jupiter\junit-jupiter-engine\5.8.2\junit-jupiter-engine-5.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\junit\platform\junit-platform-engine\1.8.2\junit-platform-engine-1.8.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mockito\mockito-core\4.5.1\mockito-core-4.5.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\bytebuddy\byte-buddy\1.12.23\byte-buddy-1.12.23.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\bytebuddy\byte-buddy-agent\1.12.23\byte-buddy-agent-1.12.23.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\objenesis\objenesis\3.2\objenesis-3.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mockito\mockito-junit-jupiter\4.5.1\mockito-junit-jupiter-4.5.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\skyscreamer\jsonassert\1.5.1\jsonassert-1.5.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-core\5.3.31\spring-core-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-jcl\5.3.31\spring-jcl-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-test\5.3.31\spring-test-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\xmlunit\xmlunit-core\2.9.1\xmlunit-core-2.9.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.7.18\spring-boot-starter-data-jpa-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-jdbc\2.7.18\spring-boot-starter-jdbc-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-jdbc\5.3.31\spring-jdbc-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hibernate\hibernate-core\5.6.15.Final\hibernate-core-5.6.15.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\jboss\jandex\2.4.2.Final\jandex-2.4.2.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\glassfish\jaxb\jaxb-runtime\2.3.9\jaxb-runtime-2.3.9.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\glassfish\jaxb\txw2\2.3.9\txw2-2.3.9.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\sun\istack\istack-commons-runtime\3.0.12\istack-commons-runtime-3.0.12.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\data\spring-data-jpa\2.7.18\spring-data-jpa-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\data\spring-data-commons\2.7.18\spring-data-commons-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-orm\5.3.31\spring-orm-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-aspects\5.3.31\spring-aspects-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\mysql\mysql-connector-j\8.0.33\mysql-connector-j-8.0.33.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-actuator\2.7.18\spring-boot-starter-actuator-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.7.18\spring-boot-actuator-autoconfigure-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-actuator\2.7.18\spring-boot-actuator-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\micrometer\micrometer-core\1.11.5\micrometer-core-1.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\micrometer\micrometer-commons\1.11.5\micrometer-commons-1.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\micrometer\micrometer-observation\1.11.5\micrometer-observation-1.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\micrometer\micrometer-registry-prometheus\1.11.5\micrometer-registry-prometheus-1.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\prometheus\simpleclient_common\0.15.0\simpleclient_common-0.15.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\prometheus\simpleclient\0.15.0\simpleclient-0.15.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\prometheus\simpleclient_tracer_otel\0.15.0\simpleclient_tracer_otel-0.15.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\prometheus\simpleclient_tracer_common\0.15.0\simpleclient_tracer_common-0.15.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\prometheus\simpleclient_tracer_otel_agent\0.15.0\simpleclient_tracer_otel_agent-0.15.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\jsonwebtoken\jjwt-api\0.11.5\jjwt-api-0.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\jsonwebtoken\jjwt-impl\0.11.5\jjwt-impl-0.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\jsonwebtoken\jjwt-jackson\0.11.5\jjwt-jackson-0.11.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\core\jackson-databind\2.13.5\jackson-databind-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.5\jackson-annotations-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\fasterxml\jackson\core\jackson-core\2.13.5\jackson-core-2.13.5.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-netty-shaded\1.56.1\grpc-netty-shaded-1.56.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\guava\guava\31.1-android\guava-31.1-android.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\checkerframework\checker-qual\3.12.0\checker-qual-3.12.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\errorprone\error_prone_annotations\2.18.0\error_prone_annotations-2.18.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\perfmark\perfmark-api\0.26.0\perfmark-api-0.26.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-protobuf\1.56.1\grpc-protobuf-1.56.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\api\grpc\proto-google-common-protos\2.17.0\proto-google-common-protos-2.17.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-protobuf-lite\1.56.1\grpc-protobuf-lite-1.56.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-stub\1.56.1\grpc-stub-1.56.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\protobuf\protobuf-java\3.23.4\protobuf-java-3.23.4.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-spring-boot-starter\2.14.0.RELEASE\grpc-spring-boot-starter-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-server-spring-boot-starter\2.14.0.RELEASE\grpc-server-spring-boot-starter-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-server-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-server-spring-boot-autoconfigure-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-common-spring-boot\2.14.0.RELEASE\grpc-common-spring-boot-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-core\1.51.0\grpc-core-1.51.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\code\gson\gson\2.9.1\gson-2.9.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\android\annotations\4.1.1.4\annotations-4.1.1.4.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\codehaus\mojo\animal-sniffer-annotations\1.21\animal-sniffer-annotations-1.21.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-services\1.51.0\grpc-services-1.51.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\google\protobuf\protobuf-java-util\3.21.7\protobuf-java-util-3.21.7.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-api\1.51.0\grpc-api-1.51.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\grpc\grpc-context\1.51.0\grpc-context-1.51.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-client-spring-boot-starter\2.14.0.RELEASE\grpc-client-spring-boot-starter-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\net\devh\grpc-client-spring-boot-autoconfigure\2.14.0.RELEASE\grpc-client-spring-boot-autoconfigure-2.14.0.RELEASE.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\junit\junit\4.13.2\junit-4.13.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\hamcrest\hamcrest-core\2.2\hamcrest-core-2.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-data-cassandra\2.7.18\spring-boot-starter-data-cassandra-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\spring-tx\5.3.31\spring-tx-5.3.31.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\data\spring-data-cassandra\3.4.18\spring-data-cassandra-3.4.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\datastax\oss\java-driver-core\4.14.1\java-driver-core-4.14.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\datastax\oss\native-protocol\1.5.1\native-protocol-1.5.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-handler\4.1.101.Final\netty-handler-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-common\4.1.101.Final\netty-common-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-resolver\4.1.101.Final\netty-resolver-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-buffer\4.1.101.Final\netty-buffer-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-transport\4.1.101.Final\netty-transport-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-transport-native-unix-common\4.1.101.Final\netty-transport-native-unix-common-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\netty\netty-codec\4.1.101.Final\netty-codec-4.1.101.Final.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\datastax\oss\java-driver-shaded-guava\25.1-jre-graal-sub-1\java-driver-shaded-guava-25.1-jre-graal-sub-1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\typesafe\config\1.4.1\config-1.4.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jnr-posix\3.1.15\jnr-posix-3.1.15.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jnr-ffi\2.2.11\jnr-ffi-2.2.11.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jffi\1.3.9\jffi-1.3.9.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jffi\1.3.9\jffi-1.3.9-native.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\ow2\asm\asm-commons\9.2\asm-commons-9.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\ow2\asm\asm-analysis\9.2\asm-analysis-9.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\ow2\asm\asm-tree\9.2\asm-tree-9.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\ow2\asm\asm-util\9.2\asm-util-9.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jnr-a64asm\1.0.0\jnr-a64asm-1.0.0.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jnr-x86asm\1.0.2\jnr-x86asm-1.0.2.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\jnr\jnr-constants\0.10.3\jnr-constants-0.10.3.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\io\dropwizard\metrics\metrics-core\4.2.22\metrics-core-4.2.22.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\stephenc\jcip\jcip-annotations\1.0-1\jcip-annotations-1.0-1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\github\spotbugs\spotbugs-annotations\3.1.12\spotbugs-annotations-3.1.12.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\com\datastax\oss\java-driver-query-builder\4.14.1\java-driver-query-builder-4.14.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\boot\spring-boot-starter-data-mongodb\2.7.18\spring-boot-starter-data-mongodb-2.7.18.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mongodb\mongodb-driver-sync\4.6.1\mongodb-driver-sync-4.6.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mongodb\bson\4.6.1\bson-4.6.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mongodb\mongodb-driver-core\4.6.1\mongodb-driver-core-4.6.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\mongodb\bson-record-codec\4.6.1\bson-record-codec-4.6.1.jar;D:\Program Files\apache-maven-3.9.11-bin\apache-maven-3.9.11\repository\org\springframework\data\spring-data-mongodb\3.4.18\spring-data-mongodb-3.4.18.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.tplink.nbu.demo.basicspringboot.service.impl.UserServiceImplTest,testGetUser_CacheHit org.mockito.exceptions.verification.TooManyActualInvocations: userRepository.findById(1L); Wanted 1 time: -> at com.tplink.nbu.demo.basicspringboot.service.impl.UserServiceImplTest.testGetUser_CacheHit(UserServiceImplTest.java:382) But was 2 times: -> at com.tplink.nbu.demo.basicspringboot.service.impl.UserServiceImpl.getUser(UserServiceImpl.java:133) -> at com.tplink.nbu.demo.basicspringboot.service.impl.UserServiceImpl.getUser(UserServiceImpl.java:133) at com.tplink.nbu.demo.basicspringboot.service.impl.UserServiceImplTest.testGetUser_CacheHit(UserServiceImplTest.java:382) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.mockito.internal.runners.DefaultInternalRunner$1$1.evaluate(DefaultInternalRunner.java:55) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.mockito.internal.runners.DefaultInternalRunner$1.run(DefaultInternalRunner.java:100) at org.mockito.internal.runners.DefaultInternalRunner.run(DefaultInternalRunner.java:107) at org.mockito.internal.runners.StrictRunner.run(StrictRunner.java:41) at org.mockito.junit.MockitoJUnitRunner.run(MockitoJUnitRunner.java:163) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)

filetype
内容概要:本文系统介绍了算术优化算法(AOA)的基本原理、核心思想及Python实现方法,并通过图像分割的实际案例展示了其应用价值。AOA是一种基于种群的元启发式算法,其核心思想来源于四则运算,利用乘除运算进行全局勘探,加减运算进行局部开发,通过数学优化器加速函数(MOA)和数学优化概率(MOP)动态控制搜索过程,在全局探索与局部开发之间实现平衡。文章详细解析了算法的初始化、勘探与开发阶段的更新策略,并提供了完整的Python代码实现,结合Rastrigin函数进行测试验证。进一步地,以Flask框架搭建前后端分离系统,将AOA应用于图像分割任务,展示了其在实际工程中的可行性与高效性。最后,通过收敛速度、寻优精度等指标评估算法性能,并提出自适应参数调整、模型优化和并行计算等改进策略。; 适合人群:具备一定Python编程基础和优化算法基础知识的高校学生、科研人员及工程技术人员,尤其适合从事人工智能、图像处理、智能优化等领域的从业者;; 使用场景及目标:①理解元启发式算法的设计思想与实现机制;②掌握AOA在函数优化、图像分割等实际问题中的建模与求解方法;③学习如何将优化算法集成到Web系统中实现工程化应用;④为算法性能评估与改进提供实践参考; 阅读建议:建议读者结合代码逐行调试,深入理解算法流程中MOA与MOP的作用机制,尝试在不同测试函数上运行算法以观察性能差异,并可进一步扩展图像分割模块,引入更复杂的预处理或后处理技术以提升分割效果。
panjq882288
  • 粉丝: 10
上传资源 快速赚钱