首页>代码>Spring Boot+Spring Data JPA+Bootstrap整合实现很简单的求职招聘网站实例>/springboot-sqlite-mini-website/src/main/java/az/mm/developerjobs/config/Config.java
package az.mm.developerjobs.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;

/**
 *
 * @author MM <mushfiqazeri@gmail.com>
 */
@Configuration
public class Config {
    
    @Bean(name = "messageSource")
    public ReloadableResourceBundleMessageSource messageSource() {
        ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
        messageSource.setBasenames("classpath:messages");
        messageSource.setDefaultEncoding("UTF-8");
        return messageSource;
    }
    
    
/*
    //This config is added into application.properties file
    
    @Bean
    public DataSource dataSource() {
        DataSourceBuilder dataSourceBuilder = DataSourceBuilder.create();
        dataSourceBuilder.driverClassName("org.sqlite.JDBC");
        dataSourceBuilder.url("jdbc:sqlite:D:\\developer_jobs.sqlite");
        return dataSourceBuilder.build();
    }
*/
    
}
最近下载更多
shuangfu  LV24 2023年10月19日
xsxtxbb  LV8 2022年10月10日
鸾夜0000  LV2 2022年6月7日
crosa_Don  LV18 2022年5月29日
最近浏览更多
860421  LV3 4月18日
zolscy  LV12 4月4日
wddq123 4月3日
暂无贡献等级
婴儿早教打猫猫菇  LV2 2月17日
xshxxm1  LV21 1月22日
2716804680  LV9 1月10日
liubojian  LV2 1月3日
pangzhihui  LV12 2023年12月23日
admin_z  LV22 2023年12月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友