-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatible with spring boot 2.x #14729
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LICENSE in shardingsphere-distribution should also be updated if versions of dependencies changed.
Codecov Report
@@ Coverage Diff @@
## master #14729 +/- ##
============================================
+ Coverage 60.49% 60.51% +0.02%
Complexity 1954 1954
============================================
Files 3220 3220
Lines 48269 48284 +15
Branches 8248 8254 +6
============================================
+ Hits 29200 29219 +19
+ Misses 16691 16673 -18
- Partials 2378 2392 +14
Continue to review full report at Codecov.
|
already update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update LICENSE
@ZjcNB Please help check this PR. |
Thx, I will check it. |
@SirMin Hello, Can you pull and merge master branch? |
@SirMin Hi, thank for your submit this pull request, this idea likes good. But i hava a question. First, Springboot 2.x not support use |
@ZjcNB springboot only @ConfigurationProperties not support '_', but @value support. org.springframework.boot.context.properties.bind.DataObjectPropertyName#toDashedForm. |
Yes, i see. By the way, i think add toDashedForm() for PropertyUtil.class, it's ok. But why change dependency. |
@ZjcNB spring boot 2.x not support snakeyaml 1.16. need to uppgrade |
I think add toDashedForm() to resolve your problem, springboot version maybe shouldn't upgradle. |
Does the unit test not cover the springboot 2.x version? if not covert I will rollback it. |
Yeah, Please rollback about springboot upgradle. only keep toDashedForm(). |
fc67c9a
to
c5f7bdb
Compare
done |
Thanks. i will check it again. |
...oot-starter-infra/src/main/java/org/apache/shardingsphere/spring/boot/util/PropertyUtil.java
Outdated
Show resolved
Hide resolved
Does this have much to do with the |
@linghengqian yes, SET type generic lost in new snakeyaml. can use list instead of it, or set type |
@SirMin This pull request has some conflicts, Can you resolve it? |
I did not reply to you at the first time because I was busy. This is actually a bug introduced since snakeyaml 1.19 . Reference in https://bitbucket.org/snakeyaml/snakeyaml/issues/387/support-for-generic-types-when-serializing . |
Fixes #13602.
Changes proposed in this pull request: