# ycl.springframework.boot.commons **Repository Path**: devil-ycl/ycl.springframework.boot.commons ## Basic Information - **Project Name**: ycl.springframework.boot.commons - **Description**: spring框架的基础工程 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-12 - **Last Updated**: 2023-04-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 工程引用必读 `作者: YCL` ## 须在配置文件中配置: ### 1. 数据库映射地址 ~~~yaml spring: datasource: url: jdbc:mysql://localhost:3306/ycl_system?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowMultiQueries=true ~~~ ### 2. 工程包地址及认证方法(目前支持2种: redis / jwt) ~~~yaml project: controllerPackage: ycl.springframework.test.controller method: REDIS ~~~ ## 代码生成工具 ~~~java package ycl.lingmeng.hotel.util; import CodeGeneratorReq; /** * @author YCL * @date 2022/01/19 22:32:02 */ public class CodeGeneratorUtil { public static void main(String[] args) { CodeGeneratorReq req = new CodeGeneratorReq( "ycl.lingmeng.hotel", "jdbc:mysql://localhost:3306/", "ycl_system", "root", "0000", "ycl"); CodeGeneratorUtil.create(req); } } ~~~ ## 启动类 ~~~java @SpringBootApplication(scanBasePackages = { "ycl.springframework.boot.commons",//common包的路径 "ycl.lingmeng.hotel"//自己的启动器路径 }) public class HotelApplication { } ~~~ ## 请实现 LoginService 中的登录注册方法不然无法启动 ~~~java import org.springframework.stereotype.Service; @Service public class XXXServiceImpl implements LoginService { } ~~~ # End