Skip to content

SOFABoot文档描述问题 #713

Open
@huayangMr

Description

@huayangMr

Describe the bug

sofaboot使用文档中,模块隔离-JVM 服务发布与引用-Annotation 方式-提示,感觉描述不清楚影响使用
https://www.sofastack.tech/projects/sofa-boot/sofaboot-module/

@SofaService 的作用是将一个 Bean 发布成一个 JVM 服务,这意味着虽然你可以不用再写 sofa:service/ 的配置,但是还是需要事先将 @SofaService 所注解的类配置成一个 Spring Bean。

Suggest

在这里注明:配置方式必须是在META-INF/spring 下xml方式配置Bean或者在此处启用注解扫描模式
<!-- <bean id="publishImpl" class="com.makeid.makeid_user.service.PublishImpl" />-->
<context:component-scan base-package="com.makeid.makeid_user.service"/>

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