# Conflicts:
#	ruoyi-admin/src/main/resources/application-internet.yml
wushunjie
杜函宇 5 months ago
commit f64b241e16

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging> <packaging>jar</packaging>
<artifactId>ruoyi-admin</artifactId> <artifactId>bms</artifactId>
<description> <description>
web服务入口 web服务入口

@ -11,17 +11,15 @@ import java.net.UnknownHostException;
/** /**
* *
* *
* @author ruoyi * @author ruoyi
*/ */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RuoYiApplication public class RuoYiApplication {
{ public static void main(String[] args) {
public static void main(String[] args)
{
ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args); ConfigurableApplicationContext application = SpringApplication.run(RuoYiApplication.class, args);
Environment env = application.getEnvironment(); Environment env = application.getEnvironment();
String ip = null; String ip;
try { try {
ip = InetAddress.getLocalHost().getHostAddress(); ip = InetAddress.getLocalHost().getHostAddress();
} catch (UnknownHostException e) { } catch (UnknownHostException e) {

@ -1,3 +1,31 @@
# 项目相关配置
ruoyi:
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: /home/ruoyi/uploadPath
# 正式环境配置
server:
# 服务器的HTTP端口默认为8080
port: 8910
servlet:
# 应用的访问路径
context-path: /api
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数默认为100
accept-count: 1000
threads:
# tomcat最大线程数默认为200
max: 800
# Tomcat启动初始化的线程数默认值10
min-spare: 100
# 日志配置
logging:
level:
com.ruoyi: error
org.springframework: error
# 数据源配置 # 数据源配置
spring: spring:
datasource: datasource:
@ -6,11 +34,9 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
# url: jdbc:mysql://localhost:3306/jingji_hu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.114.0.247:3306/jinji_hu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://39.101.188.84:3307/jingji_hu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: root
# password: root password: Cloud@1234
password: Admin123@
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
@ -61,11 +87,28 @@ spring:
wall: wall:
config: config:
multi-statement-allow: true multi-statement-allow: true
# 开发环境配置 # redis 配置
server: redis:
servlet: # 地址
# 应用的访问路径 host: 192.114.0.247
context-path: /api # 端口默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password: Cloud@1234
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
#自己客户端地址 #自己客户端地址
returnUrl: http://39.101.188.84:9999/demo/JinJiHu returnUrl: https://idp.sipac.gov.cn/bms/JinJiHu
#returnUrl: http://192.168.0.105:80/ #returnUrl: http://192.168.0.105:80/
Loading…
Cancel
Save