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.95k stars 1.26k forks source link

Add annotation sofa service bean #1176

Closed crazysaltfish closed 1 year ago

crazysaltfish commented 1 year ago

add @SofaServiceBean annotation to create a SOFA service and also created a bean.

crazysaltfish commented 1 year ago

@SofaService 已经支持 Repeatable,这个注解也支持下吧,同时补充下对应的测试用例

@SofaServiceBean 注解带有 @Component ,不支持 Repeatable,在需要 Repeatable 的场景可以同时使用 @SofaService 注解解决

codecov[bot] commented 1 year ago

Codecov Report

Merging #1176 (7c967b5) into master (edcd60c) will increase coverage by 0.05%. The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1176      +/-   ##
============================================
+ Coverage     71.61%   71.66%   +0.05%     
- Complexity     1822     1826       +4     
============================================
  Files           252      252              
  Lines          7348     7348              
  Branches        929      929              
============================================
+ Hits           5262     5266       +4     
  Misses         1606     1606              
+ Partials        480      476       -4     

see 1 file with indirect coverage changes