首页>代码>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();
    }
}
最近下载更多
                
                xb12369     LV7
                2024年11月21日
            
            
        
                2509878298     LV5
                2024年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     LV55
                2021年12月30日
            
            
        
                j1an01     LV6
                2021年12月15日
            
            
        
                a1677596408     LV23
                2021年7月27日
            
            
        
                
                
                
最近浏览