sofastack / sofa-boot

SOFABoot is a framework that enhances Spring Boot and fully compatible with it, provides readiness check, class isolation, etc.
https://www.sofastack.tech/sofa-boot/docs/Home
Apache License 2.0
4.96k stars 1.26k forks source link

将SOFABoot模块打包成一个jar包, 在宿主应用上应该如何以正确的方式引用该Jar包? #400

Closed TomorJM closed 5 years ago

TomorJM commented 5 years ago

在pom文件中引入该jar包, 使用JVM服务一直报错找不到。正确方式是什么?

QilongZhang commented 5 years ago

麻烦提供下问题 demo

TomorJM commented 5 years ago

demo

TomorJM commented 5 years ago

@QilongZhang Demo中有四个模块 facade、contract、info需要执行下mvn install发布到本地 supplier作为宿主web应用启动后调用localhost:8080/test报错 image

TomorJM commented 5 years ago

@QilongZhang 在看了吗, 急~

QilongZhang commented 5 years ago

参考文档: https://www.sofastack.tech/sofa-boot/docs/SOFABoot-Module

你的 xml 文件放错了目录了(resource/spring/),应该放在(resource/META-INF/spring/)