Skip to content

devil-ycl/ycl.springframework.boot.commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

工程引用必读

作者: YCL

须在配置文件中配置:

1. 数据库映射地址

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)

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 {

}

请实现 LoginService 中的登录注册方法不然无法启动

import org.springframework.stereotype.Service;

@Service
public class XXXServiceImpl implements LoginService {
}

End

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages