loc-framework icon indicating copy to clipboard operation
loc-framework copied to clipboard

请教些问题

Open liufeikl2008 opened this issue 6 years ago • 1 comments

1.Ioc-samples 中依赖的loc-framework-config-sample 中没有这个config-starter 2.mybatis中的配置文件 image中的readDemo等的连接数据库属性在 image中没有定义和解析,请问是怎么能够设置连接的,若设置的是默认的数据库,那请问是怎么去设置的呢? 3.

liufeikl2008 avatar Apr 23 '18 07:04 liufeikl2008

  1. loc-framework-config-sample里面只是作为一个普通的app,并且只是作为一个config-client,相关的依赖在 loc-framework-config-starter 中间, 间接依赖了spring-cloud-starter-config组件

  2. 这个分为了两个部分jdbc配置和mybatis配置,其中数据源的配置都在jdbc模块的代码中, 您截图的部分只是mybatis模块的代码, 相当于mybatis模块依赖于jdbc模块,同时如果以后还有jpa模块,同样可以依赖于jdbc模块。 jdbc模块是数据源配置, mybatis模块或者jpa模块是orm层面的配置

  3. 问题没有看到

dragontree101 avatar Apr 25 '18 14:04 dragontree101