springboot多模块打包报错,找不到xxx包,找不到xxx类

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_42714869/article/details/83537794

ne-parent是父模块

ne-commo是公共组件模块

ne-web是项目入口模块

错误:

ne-web模块打包的时候,找不到ne-commo公共组件模块的包,找不到ne-commo公共组件模块的类,

原因:

1、ne-commo不能添加spring-boot-maven-plugin插件,如果添加了spring-boot-maven-plugin,当运行maven的package打包命令时,这个SpringBoot插件会在Maven的package后进行二次打包,目的为了生成可执行jar包;

2、二次打包后其他模块引用ne-commo模块就会报错找不到xxx包,找不到xxx类错误

ne-commo子模块的pom.xml中build内容如下:

<build>
        <plugins>
            <!-- 资源文件拷贝插件 -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <configuration>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

ne-parent父模块的pom.xml中bulid内容如下:

 <modelVersion>4.0.0</modelVersion>
 <groupId>com.upincar.ne.parent</groupId>
 <artifactId>ne-parent</artifactId>
 <version>1.0-SNAPSHOT</version>
 <packaging>pom</packaging>
  
 <parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>2.0.1.RELEASE</version>
 </parent>
	
 <modules>
    <module>ne-commo</module>
    <module>ne-web</module>
 </modules>


<build>
	<resources>
		<resource>
			<directory>${basedir}/src/main/resources</directory>
			<filtering>true</filtering>
			<includes>
				<include>**/*</include>
			</includes>
		</resource>
	</resources>
	<pluginManagement>
		<plugins>				
			<!-- java编译插件 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<encoding>UTF-8</encoding>
					<compilerArguments>
						<verbose/>
						<bootclasspath>${java.home}\lib\rt.jar;${java.home}\lib\jce.jar</bootclasspath>
					</compilerArguments>
				</configuration>
			</plugin>
		</plugins>
	</pluginManagement>
</build>

ne-web子模块的pom.xml配置如下:

<modelVersion>4.0.0</modelVersion>
<groupId>com.upincar.ne.web</groupId>
<artifactId>ne-web</artifactId>
<packaging>war</packaging>
  
<parent>
    <groupId>com.upincar.ne.parent</groupId>
    <artifactId>ne-parent</artifactId>
    <version>1.0-SNAPSHOT</version>
</parent>

<build>
	<finalName>ne-web</finalName>
	<resources>           
		<resource>
		  <directory>src/main/resources</directory>
		  <filtering>false</filtering>
		  <includes>
			<include>**/*.woff</include>
			<include>**/*.woff2</include>
			<include>**/*.ttf</include>
		  </includes>
		</resource>
	  </resources>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<!-- 指定该Main Class为全局的唯一入口 ############ -->
			<configuration>
				<mainClass>com.upincar.xigua.XiguaApplication</mainClass>
			</configuration>
			<executions>
				<execution>
					<goals>
						<goal>repackage</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build> 

注:进行如上配置之后,要发布的子模块打war包时,先打包公共模块,再打包要发布的子模块,打包要发布的子模块时就不会报找不到xxx包,找不到xxx类的错误了

 

展开阅读全文

spring cglib报错 xxx cannot be cast to xxx

01-18

[b][size=18px]1, 想使用 ehcache + spring jdbc 实现查询结果缓存,现在功能都实现了,但是使用时报错[/size]:[/b]rnrn[code=java]rnjava.lang.ClassCastException: com.hbzx.bean.ShopViewCountBean cannot be cast to java.util.Listrn at com.hbzx.dao.ShopViewCountDao$$EnhancerBySpringCGLIB$$1c70ff76.queryAll()rn at com.hbzx.service.ShopViewCountService.fillHistory(ShopViewCountService.java:143)rn at com.hbzx.service.ShopViewCountService.query(ShopViewCountService.java:46)rn at com.hbzx.controller.UserCommissionController.getMyShopLog(UserCommissionController.java:45)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:483)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:743)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:672)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:82)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)rn at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:180)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rn[/code]rnrn 论坛

SpringBoot RedisTemplate打包找不到

05-07

SpringBoot RedisTemplate打包后找不到类rnrnrnSpringBoot 2.0.4.RELEASE 版本.rnrnrn关键 POM 文件引用rn```rn rn rn org.springframework.bootrn spring-boot-starter-data-redisrn rn rn rn org.apache.commonsrn commons-pool2rn rn```rnrnrn关键代码rn```rn/**rn * Redis 工具rn */rn@Componentrnpublic class RedisUtil rnrn @Autowiredrn @Qualifier("redisTemplate")rn protected RedisTemplate redisTemplate;rn rnrn```rnrnrn也试过使用 @Resource 了....rnrn在IDEA里面运行一切正常....打包后出现异常:rnrn```rnCaused by: java.lang.IllegalStateException: Failed to introspect Class [com.null00.common.utils.RedisUtil] from ClassLoader [sun.misc.Launcher$AppClassLoader@55f96302]rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:659)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:556)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:541)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:244)rn ... 52 common frames omittedrn**Caused by: java.lang.NoClassDefFoundError: org/springframework/data/redis/core/RedisTemplate**rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Unknown Source)rn at java.lang.Class.getDeclaredMethods(Unknown Source)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:641)rn ... 55 common frames omittedrn**Caused by: java.lang.ClassNotFoundException: org.springframework.data.redis.core.RedisTemplate**rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn ... 59 common frames omittedrn```rnrnrnrn导出后的依赖包:rn```rnlib/spring-boot-starter-jdbc-2.0.4.RELEASE.jarrnlib/snakeyaml-1.19.jarrnlib/spring-tx-5.0.8.RELEASE.jarrnlib/tomcat-embed-el-8.5.32.jarrnlib/HikariCP-2.7.9.jarrnlib/spring-boot-starter-logging-2.0.4.RELEASE.jarrnlib/reactor-core-3.1.8.RELEASE.jarrnlib/reactive-streams-1.0.2.jarrnlib/netty-codec-4.1.27.Final.jarrnlib/spring-context-support-5.0.8.RELEASE.jarrnlib/shiro-core-1.3.2.jarrnlib/jackson-core-2.9.6.jarrnlib/log4j-api-2.10.0.jarrnlib/mybatis-3.4.6.jarrnlib/mysql-connector-java-6.0.6.jarrnlib/spring-aop-5.0.8.RELEASE.jarrnlib/slf4j-api-1.7.25.jarrnlib/jboss-logging-3.3.2.Final.jarrnlib/spring-boot-starter-data-redis-2.0.4.RELEASE.jarrnlib/mybatis-spring-boot-autoconfigure-1.3.2.jarrnlib/javax.annotation-api-1.3.2.jarrnlib/shiro-spring-1.3.2.jarrnlib/mybatis-spring-boot-starter-1.3.2.jarrnlib/log4j-to-slf4j-2.10.0.jarrnlib/spring-jcl-5.0.8.RELEASE.jarrnlib/spring-boot-devtools-2.0.4.RELEASE.jarrnlib/spring-expression-5.0.8.RELEASE.jarrnlib/netty-transport-4.1.27.Final.jarrnlib/commons-pool2-2.5.0.jarrnlib/spring-boot-autoconfigure-2.0.4.RELEASE.jarrnlib/spring-context-5.0.8.RELEASE.jarrnlib/spring-core-5.0.8.RELEASE.jarrnlib/spring-boot-starter-web-2.0.4.RELEASE.jarrnlib/spring-boot-configuration-processor-2.0.4.RELEASE.jarrnlib/hibernate-validator-6.0.11.Final.jarrnlib/commons-beanutils-1.8.3.jarrnlib/spring-boot-starter-json-2.0.4.RELEASE.jarrnlib/jackson-module-parameter-names-2.9.6.jarrnlib/jsqlparser-0.9.4.jarrnlib/spring-web-5.0.8.RELEASE.jarrnlib/netty-buffer-4.1.27.Final.jarrnlib/lettuce-core-5.0.4.RELEASE.jarrnlib/classmate-1.3.4.jarrnlib/spring-boot-starter-aop-2.0.4.RELEASE.jarrnlib/spring-data-keyvalue-2.0.9.RELEASE.jarrnlib/netty-common-4.1.27.Final.jarrnlib/tomcat-embed-websocket-8.5.32.jarrnlib/jackson-databind-2.9.6.jarrnlib/spring-data-redis-2.0.9.RELEASE.jarrnlib/json-simple-1.1.1.jarrnlib/MiPush_SDK_Server_2_2_19.jarrnlib/pagehelper-4.1.0.jarrnlib/aspectjweaver-1.8.13.jarrnlib/spring-webmvc-5.0.8.RELEASE.jarrnlib/jackson-datatype-jsr310-2.9.6.jarrnlib/spring-boot-starter-2.0.4.RELEASE.jarrnlib/spring-oxm-5.0.8.RELEASE.jarrnlib/xml-apis-1.4.01.jarrnlib/spring-beans-5.0.8.RELEASE.jarrnlib/spring-data-commons-2.0.9.RELEASE.jarrnlib/jackson-annotations-2.9.0.jarrnlib/netty-handler-4.1.27.Final.jarrnlib/spring-boot-starter-tomcat-2.0.4.RELEASE.jarrnlib/logback-classic-1.2.3.jarrnlib/validation-api-2.0.1.Final.jarrnlib/spring-boot-2.0.4.RELEASE.jarrnlib/shiro-web-1.3.2.jarrnlib/gson-2.8.2.jarrnlib/logback-core-1.2.3.jarrnlib/jul-to-slf4j-1.7.25.jarrnlib/tomcat-embed-core-8.5.32.jarrnlib/jackson-datatype-jdk8-2.9.6.jarrnlib/dom4j-1.6.1.jarrnlib/spring-jdbc-5.0.8.RELEASE.jarrnlib/mybatis-spring-1.3.2.jarrnlib/netty-resolver-4.1.27.Final.jarrn```rnrn------更新------rnrn后来用查看关于依赖调用有 2 个Redis的Jarrnspring-boot-starter-data-redis-2.0.4.RELEASErnspring-data-redis-2.0.9.RELEASErnrnrn通过 jd-gui 解析Jar包 spring-data-redis 才是真正实现包rnrn在程序启动时使用 Class.forName 发现任何与该包的类都调用不了..... 问答

mybatis 报错 There is no getter for property named 'xxx' in 'xxx'

04-12

[code=text]Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'is_partner' in 'class com.xfj.base.bossapp.domain.SellerAgent'rn at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:333)rn at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:160)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:151)rn at org.apache.ibatis.reflection.wrapper.BeanWrapper.get(BeanWrapper.java:44)rn at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:123)rn at org.apache.ibatis.builder.xml.dynamic.DynamicContext$ContextMap.get(DynamicContext.java:89)rn at org.apache.ibatis.builder.xml.dynamic.DynamicContext$ContextAccessor.getProperty(DynamicContext.java:107)rn at org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1657)rn at org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:92)rn at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)rn at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:210)rn at org.apache.ibatis.ognl.ASTNotEq.getValueBody(ASTNotEq.java:49)rn at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)rn at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:210)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:333)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:413)rn at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:395)rn at org.apache.ibatis.builder.xml.dynamic.OgnlCache.getValue(OgnlCache.java:42)rn at org.apache.ibatis.builder.xml.dynamic.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32)rn at org.apache.ibatis.builder.xml.dynamic.IfSqlNode.apply(IfSqlNode.java:30)rn at org.apache.ibatis.builder.xml.dynamic.MixedSqlNode.apply(MixedSqlNode.java:29)rn at org.apache.ibatis.builder.xml.dynamic.TrimSqlNode.apply(TrimSqlNode.java:42)rn at org.apache.ibatis.builder.xml.dynamic.MixedSqlNode.apply(MixedSqlNode.java:29)rn at org.apache.ibatis.builder.xml.dynamic.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:37)rn at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:241)rn at org.apache.ibatis.executor.statement.BaseStatementHandler.(BaseStatementHandler.java:61)rn at org.apache.ibatis.executor.statement.PreparedStatementHandler.(PreparedStatementHandler.java:36)rn at org.apache.ibatis.executor.statement.RoutingStatementHandler.(RoutingStatementHandler.java:42)rn at org.apache.ibatis.session.Configuration.newStatementHandler(Configuration.java:348)rn at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:43)rn at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:108)rn at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:75)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:145)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:355)rn ... 176 more[/code]rnrn找了好久都找不到什么问题,用的方法是用工具生成的update方法 论坛

spring cloud config client启动报错找不到$XXX

08-13

spring cloud config client启动报错找不到$XXX,直接访问server可以访问,接口访问就不行,大神门帮忙瞅瞅,万分感谢rn[b]配置文件服务端:[/b][color=#FF0000][/color]rn##服务端口rnserver.port=7003rn##服务名称rn#spring.application.name=gp-config-centerrnspring.application.name=configserverrn###服务注册中心rneureka.client.serviceUrl.defaultZone=http://admin:admin123@localhost:7005/eureka/rn##cloud config配置rn#使用svn作为配置仓库,必须显示声明profiles.active=subversion,不然还是用的gitrnspring.profiles.active=subversionrnspring.cloud.config.enabled=truernspring.cloud.config.server.svn.uri=https://laptop-blvldd8r/svn/TestSvn/gp_platconfigrnspring.cloud.config.server.svn.username=adminrnspring.cloud.config.server.svn.password=adminrnspring.cloud.config.discovery.enabled=truernmanagement.health.config.enabled=falsern#使用application占位符rnspring.cloud.config.server.svn.search-paths=applicationrnspring.cloud.config.server.svn.default-label=trunkrn#默认在系统临时目录下面,需要调整一下避免临时文件被系统自动清理rnspring.cloud.config.server.svn.basedir=/datarn##spring security认证配置rnsecurity.user.name=adminrnsecurity.user.password=admin123rn####RabbitMQ配置rn#spring.rabbitmq.host=localhostrn#spring.rabbitmq.port=5672rn#spring.rabbitmq.username=guestrn#spring.rabbitmq.password=guestrn###忽略权限拦截rnmanagement.security.enabled=falsern####失败重试机制rnspring.cloud.loadbalancer.retry.enabled=truern##初始重试间隔时间(单位为毫秒)默认为1000毫秒rnspring.cloud.config.retry.max-interval=1000rn##下一间隔乘数rnspring.cloud.config.retry.multiplier=1.1rn##最大间隔时间rnspring.cloud.config.retry.initial-interval=1000rn##最大重试次数(默认6次)rnspring.cloud.config.retry.max-attempts=3rn#开启健康检查(需要spring-boot-starter-actuator依赖)rneureka.client.healthcheck.enabled=truernrn[b]配置文件客户端[/b][color=#FF0000][/color]rnrnspring.application.name=config-clientrn server.port=7069rn rneureka.client.service-url.defaultZone=http://admin:admin123@localhost:7005/eureka/rnspring.cloud.config.discovery.enabled=truern#spring.cloud.config.discovery.service-id=gp-config-centerrnspring.cloud.config.uri=http://localhost:7003rnspring.cloud.config.server.bootstrap=truern rnrn rnspring.cloud.config.profile=devrnspring.cloud.config.fail-fast=truernrnspring.cloud.config.enabled=falsernrnspring.cloud.config.label=defaultrnmanagement.security.enabled=falsern#management.security.roles=SUPERUSERrnrn#spring.cloud.config.name=config-clientrnrnrnrnrnspring.rabbitmq.host=192.168.1.162rnspring.rabbitmq.port=5672rnspring.rabbitmq.username=guestrnspring.rabbitmq.password=guestrnrnrn#spring.cloud.config.retry.max-interval=1000rn#spring.cloud.config.retry.multiplier=1.1rn#spring.cloud.config.retry.initial-interval=1000rn#spring.cloud.config.retry.max-attempts=3rnrnrnrnlogging.level.ROOT=DEBUGrnrn[b]请求方法[/b][color=#FF0000][/color]rnrn@RefreshScope //允许动态刷新配置rn@RestControllerrn@EnableAutoConfigurationrnpublic class MyController rn rn @Value("$peidingjun")rn private String from;rn rn @Autowiredrn private Environment env;rn rn rn @GetMapping("/peidingjun")rn public String from() rn return this.from;rn rn rn @GetMapping("/from2")rn public String from2() rn String ss = sendGetRequest("http://localhost:7003/config-client/dev");rn System.out.println("-----------------------------------------------------------");rn System.out.println(ss);rn rn return ss;rn rnrnsvn配置文件rn[img=https://img-bbs.csdn.net/upload/201808/13/1534142730_209834.png][/img]rnrn配置文件内容rn[img=https://img-bbs.csdn.net/upload/201808/13/1534142918_514289.png][/img]rnrn报错rn[img=https://img-bbs.csdn.net/upload/201808/13/1534143092_63106.png][/img]rnrn单独访问config service 可以访问rn[img=https://img-bbs.csdn.net/upload/201808/13/1534143165_198257.png][/img]rn 论坛

没有更多推荐了,返回首页