sofa-boot icon indicating copy to clipboard operation
sofa-boot copied to clipboard

Schema location change to subdomain.

Open ujjboy opened this issue 6 years ago • 3 comments

Now the schema location is like this http://sofastack.io/schema/sofaboot. But sofastack.io is an apex domain. sofastack.io is managed by Alipay DNS server, which not supports setting an apex domain.

Maybe we can change the location to a www subdomain, like http://www.sofastack.io/schema/sofaboot.

I noticed that Spring did it like this too:

  • http://www.springframework.org/schema/beans

ujjboy avatar May 28 '18 04:05 ujjboy

Is this will cause some compatible problem?

khotyn avatar May 28 '18 04:05 khotyn

If both two domain is specified, I think there should be no problem.

spring.handlers:

http\://sofastack.io/schema/sofaboot=com.alipay.sofa.infra.config.spring.namespace.handler.SofaBootNamespaceHandler
http\://www.sofastack.io/schema/sofaboot=com.alipay.sofa.infra.config.spring.namespace.handler.SofaBootNamespaceHandler

spring.schemas:

http\://sofastack.io/schema/sofaboot.xsd=META-INF/com/alipay/sofa/infra/config/spring/namespace/schema/sofaboot.xsd
http\://www.sofastack.io/schema/sofaboot.xsd=META-INF/com/alipay/sofa/infra/config/spring/namespace/schema/sofaboot.xsd

ujjboy avatar May 28 '18 04:05 ujjboy

We need also to provide xsd files, as IDE uses xsd files schema to provide auto-completion @ujjboy

alaneuler avatar Oct 22 '20 08:10 alaneuler