Skip to content

配置多数据源的问题 #193

@Zxxjgp

Description

@Zxxjgp

image
数据源1和数据源二的配置
image
在windows启动都是没有问题的,但是打包成为jar报了一个这样的错误
Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:

  1. No implementation for java.lang.Integer annotated with @com.google.inject.name.Named(value=port) was bound.
    while locating java.lang.Integer annotated with @com.google.inject.name.Named(value=port)
    for the 2nd parameter of com.dooffe.guicegrpc.common.defaultimpls.DefaultModule.getChannels(DefaultModule.java:92)
    at com.dooffe.guicegrpc.common.defaultimpls.DefaultModule.getChannels(DefaultModule.java:92)

亲大佬帮忙看一下,在windows下面的idea上面运行时都是没有问题的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions