首页>代码>spring boot+mvc+mybatis+netty-sokey.io+html+js实现简单即时通讯聊天系统>/demo-spring-netty/src/main/java/com/xe/demo/common/DataSourceConfiguration.java
package com.xe.demo.common;

import javax.sql.DataSource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * 数据源配置
 * @author CZH
 */
@Configuration
@MapperScan(basePackages = "com.xe.*.mapper")
public class DataSourceConfiguration {

    @Bean
    @ConfigurationProperties(prefix = "jdbc.ds")
    public DataSource readDataSource() {
        return new DruidDataSource();
    }
}
最近下载更多
2509878298  LV5 2月29日
百里守寡  LV5 2023年8月29日
你好啊呐  LV19 2023年8月23日
annazhang  LV29 2023年2月17日
pureshyness  LV6 2022年9月29日
骑着导弹让蜗牛追去  LV8 2022年1月16日
wanglinddad  LV54 2021年12月30日
j1an01  LV6 2021年12月15日
a1677596408  LV23 2021年7月27日
15380502522  LV2 2021年6月30日
最近浏览更多
heweimin  LV12 4月7日
3334004690  LV3 3月20日
2509878298  LV5 2月29日
阿凡达  LV9 2月29日
hanzhuohong  LV1 2023年12月25日
yhwyhw1  LV2 2023年12月21日
wanfeng_233  LV4 2023年8月29日
百里守寡  LV5 2023年8月29日
你好啊呐  LV19 2023年8月23日
skiler  LV4 2023年7月28日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友