-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
我看见namespace里可以建yml配置文件,但是好像用不了 #1113
Comments
namespace为yml的,现在是需要客户端通过ConfigService.getConfigFile后自己解析的。 yml转prop的工具不好用吗?你的yml有比较高级的写法? |
也不高级,和下面这个差不多吧,就是转后结果要手动修改;
转后的结果
|
看了下,你的yml写的貌似不太标准,hibernate那块改一下就支持了 org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
database: MYSQL
show-sql: false
properties:
hibernate:
id.new_generator_mappings: true
hibernate:
cache:
use_second_level_cache: true
use_query_cache: false
region:
factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
generate_statistics: false |
这种转prop就没的转了。 |
liu12qw @liu12qw |
@LucienMoMo 欢迎使用我写的maven插件 |
我新开了一个PR #1944,支持yml类型的namespace注入到Spring中去,大家可以看一下~ |
1.3.0版本已经发布,支持了Yml/Yaml格式的namespace和Spring/Spring Boot集成。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: