Spring boot 基于注解方式配置datasource

Spring boot 基于注解方式配置datasource     编辑 ​ Xml配置 我们先来回顾下,使用xml配置数据源。 步骤: 先加载数据库相关配置文件; 配置数据源; 配置sqlSessionFactory,注入数据源 具体如下: 一:设置数据配置信息文件 先在spring的配置文件中,加载数据库配置文件   编辑 ​ <!-- 读取参数配置 --> <bean id="proper
相关文章
相关标签/搜索