Pre Merge pull request !505 from Yida/dev

pull/505/MERGE
Yida 2024-07-13 13:49:21 +00:00 committed by Gitee
commit 2a018671db
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 32 additions and 3 deletions

View File

@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://127.0.0.1:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: password
password: Bingo@1993
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -16,7 +16,7 @@ ruoyi:
# 开发环境配置
server:
# 服务器的HTTP端口默认为80
port: 80
port: 8091
servlet:
# 应用的访问路径
context-path: /

View File

@ -0,0 +1,29 @@
package com.ruoyi.quartz.task;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.stereotype.Component;
/**
*
*
* @author ruoyi
*/
@Component("bingoTask")
public class BingoTask
{
public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
{
System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i));
}
public void ryParams(String params)
{
System.out.println("执行有参方法:" + params);
}
public void bingoNoParams()
{
System.out.println("执行无参方法");
}
}