作者: YCL
spring:
datasource:
url: jdbc:mysql://localhost:3306/ycl_system?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowMultiQueries=true
project:
controllerPackage: ycl.springframework.test.controller
method: REDIS
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);
}
}
@SpringBootApplication(scanBasePackages = {
"ycl.springframework.boot.commons",//common包的路径
"ycl.lingmeng.hotel"//自己的启动器路径
})
public class HotelApplication {
}
import org.springframework.stereotype.Service;
@Service
public class XXXServiceImpl implements LoginService {
}