# crazy-stone **Repository Path**: kanma/crazy-stone ## Basic Information - **Project Name**: crazy-stone - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-12-02 - **Last Updated**: 2024-09-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # crazy-stone #### Description **java core, redis, mybatis, springboot... 实战** #### Software Architecture - crazy-stone-data: springboot 构建的 web 项目,集成 redis, mybatis 等框架的使用 - crazy-stone-core: java 核心类实践,是java基础 - crazy-stone-livestream : 实时计算,主要运用 flink - crazy-stone-website : thymeleaf 构建复杂页面应用 #### Installation 1. IDEA 2. maven 3. java8 #### Contribution 1. Fork the repository 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request #### Springboot Mybatis 总结 - ##### 数据源 DataSource 配置 ```` java /** * spring-jdbc 提供的 DS Builder : DataSourceBuilder * 单例模式 */ @Bean @Primary @ConfigurationProperties(prefix = "datasource.thyme-db") public DataSource thymeDS() { DataSourceBuilder ds = DataSourceBuilder.create(); ds.type(DruidDataSource.class); return ds.build(); // return DataSourceBuilder.create().type(DruidDataSource.class).build(); } /** * 使用 DruidDataSourceBuilder */ @Bean @ConfigurationProperties(prefix = "datasource.employees-db") public DataSource employeeDS() { return DruidDataSourceBuilder.create().build(); } ```` - ##### SqlSessionFactory ##### protobuf protoc.exe --java_out=.\ ImageSearchRankPB.proto