You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/14 06:06:47 UTC

[GitHub] [shardingsphere] xfyang1988 opened a new issue #12419: How to configure the spring namespace?

xfyang1988 opened a new issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419


   xmlns:shardingsphere
   
   ![image](https://user-images.githubusercontent.com/19721648/133203648-e88d176c-5a14-473e-8ab4-1c6f4767741e.png)
   ![image](https://user-images.githubusercontent.com/19721648/133203672-0eb6ee18-09d0-499a-8638-e60ee2503523.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 removed a comment on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 removed a comment on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918874502


   Configured according to your example, but reported the following error?
   
   Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 89; cvc-complex-type.3.2.2: 元素 'sharding:standard-strategy' 中不允许出现属性 'algorithm-ref'。
   
   ![image](https://user-images.githubusercontent.com/19721648/133211925-9b2865ec-a179-423c-a7e0-709aafc1722e.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 edited a comment on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 edited a comment on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918906768


   Configured according to your example, but reported the following error?
   
   Offending resource: class path resource [spring/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 25 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 25; columnNumber: 97; cvc-complex-type.3.2.2: 元素 'sharding:standard-strategy' 中不允许出现属性 'algorithm-ref'。
   ![image](https://user-images.githubusercontent.com/19721648/133220014-5c5f149b-c73a-4663-84c5-e3f41edb71d5.png)
   
   ![image](https://user-images.githubusercontent.com/19721648/133218901-d3b9c28a-bd28-4a31-a6bc-a5e2fd0bfade.png)
   
   http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
   
   ![image](https://user-images.githubusercontent.com/19721648/133226012-eda64550-6a23-4b11-b2e9-057a75614ecc.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 edited a comment on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 edited a comment on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918906768


   Configured according to your example, but reported the following error?
   
   Offending resource: class path resource [spring/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 25 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 25; columnNumber: 97; cvc-complex-type.3.2.2: 元素 'sharding:standard-strategy' 中不允许出现属性 'algorithm-ref'。
   ![image](https://user-images.githubusercontent.com/19721648/133220014-5c5f149b-c73a-4663-84c5-e3f41edb71d5.png)
   
   ![image](https://user-images.githubusercontent.com/19721648/133218901-d3b9c28a-bd28-4a31-a6bc-a5e2fd0bfade.png)
   
   ![image](https://user-images.githubusercontent.com/19721648/133226012-eda64550-6a23-4b11-b2e9-057a75614ecc.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] menghaoranss commented on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
menghaoranss commented on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918862691


   please refer to the example of 5.0.0-beta:
   
   https://github.com/apache/shardingsphere/blob/5.0.0-beta/examples/shardingsphere-jdbc-example/sharding-example/sharding-spring-namespace-jpa-example/src/main/resources/META-INF/application-sharding-tables.xml
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 commented on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 commented on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918906768


   Configured according to your example, but reported the following error?
   
   Offending resource: class path resource [spring/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 32; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'sharding:sharding-algorithm' 的声明。
   
   ![image](https://user-images.githubusercontent.com/19721648/133218745-86e79ebb-ebc0-4801-bb70-b917d203ddab.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 commented on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 commented on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-919621393


   This is based on the project renovation, based on the company's confidentiality agreement, can not be opened, you can check it out
   
   > @xfyang1988 Hi, Can you provider demo project for us, i will check it.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 edited a comment on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 edited a comment on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918906768


   Configured according to your example, but reported the following error?
   
   Offending resource: class path resource [spring/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 25 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 25; columnNumber: 97; cvc-complex-type.3.2.2: 元素 'sharding:standard-strategy' 中不允许出现属性 'algorithm-ref'。
   ![image](https://user-images.githubusercontent.com/19721648/133220014-5c5f149b-c73a-4663-84c5-e3f41edb71d5.png)
   
   ![image](https://user-images.githubusercontent.com/19721648/133218901-d3b9c28a-bd28-4a31-a6bc-a5e2fd0bfade.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 commented on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 commented on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918874502


   Configured according to your example, but reported the following error?
   
   Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 89; cvc-complex-type.3.2.2: 元素 'sharding:standard-strategy' 中不允许出现属性 'algorithm-ref'。
   
   ![image](https://user-images.githubusercontent.com/19721648/133211925-9b2865ec-a179-423c-a7e0-709aafc1722e.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] zjcnb commented on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-919004537


   @xfyang1988 Hi, Can you provider demo project for us, i will check it. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 closed issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 closed issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] xfyang1988 edited a comment on issue #12419: How to configure the spring namespace?

Posted by GitBox <gi...@apache.org>.
xfyang1988 edited a comment on issue #12419:
URL: https://github.com/apache/shardingsphere/issues/12419#issuecomment-918906768


   Configured according to your example, but reported the following error?
   
   Offending resource: class path resource [spring/applicationContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from class path resource [spring/local/springbeans-sharding-datasource.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 32; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'sharding:sharding-algorithm' 的声明。
   ![image](https://user-images.githubusercontent.com/19721648/133218901-d3b9c28a-bd28-4a31-a6bc-a5e2fd0bfade.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org