From 6c764f473b1e0e9dd2fb13034fe0d7295ab3724e Mon Sep 17 00:00:00 2001
From: xuefei <564615061@qq.cm>
Date: 星期二, 08 八月 2023 11:05:58 +0800
Subject: [PATCH] 允许跨域
---
xboot-admin/src/main/resources/application.yml | 44 ++++++++++++++++++++++++++++----------------
1 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/xboot-admin/src/main/resources/application.yml b/xboot-admin/src/main/resources/application.yml
index 7b0ffcc..27becba 100644
--- a/xboot-admin/src/main/resources/application.yml
+++ b/xboot-admin/src/main/resources/application.yml
@@ -26,8 +26,8 @@
url: jdbc:mysql://127.0.0.1:3306/tobacco?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
username: root
# Jasypt鍔犲瘑 鍙埌common-utils涓壘鍒癑asyptUtil鍔犺В瀵嗗伐鍏风被鐢熸垚鍔犲瘑缁撴灉 鏍煎紡涓篍NC(鍔犲瘑缁撴灉) 浠ヤ笅瑙e瘑缁撴灉涓�123456
- password: wanghaojie
- #password: 123456
+ #password: wanghaojie
+ password: rootroot
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver
# Druid StatViewServlet閰嶇疆
@@ -39,7 +39,7 @@
# 鍏佽娓呯┖缁熻鏁版嵁
reset-enable: true
login-username: root
- login-password: ENC(PYVnAYh+j5C3jkMV1d+myj6JzDaUk7pcfTWUaYsvQdEVkuvIVf7Y0mOU9XkffxT8)
+ login-password: boyingabcd12221!
# IP鐧藉悕鍗� 澶氫釜閫楀彿鍒嗛殧
allow:
# IP榛戝悕鍗�
@@ -132,6 +132,7 @@
service-base-url: http://127.0.0.1:${server.port}/
web:
resources:
+ static-locations: classpath:/static
cache:
cachecontrol:
# 闈欐�佽祫婧愮紦瀛�30澶�
@@ -143,23 +144,25 @@
# 鏆傛湭浣跨敤ES 鎺掗櫎client鑷姩瑁呴厤绫�
- org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRestClientAutoConfiguration
+ mvc:
+ static-path-pattern: //**
xboot:
# 鍏ㄥ眬闄愭祦
ratelimit:
# 寮�鍚�
- enable: true
+ enable: false
# 姣�1绉掑唴锛堝崟浣嶆绉掞級
timeout: 1000
# 鎬婚檺鍒�200涓姹傦紙鍗曚綅涓級
- limit: 200
+ limit: 2000
# IP闄愭祦
iplimit:
# 寮�鍚�
- enable: true
+ enable: false
# 姣�1绉掑唴锛堝崟浣嶆绉掞級
timeout: 1000
# 姣忎釜ip闄愬埗20涓姹傦紙鍗曚綅涓級
- limit: 20
+ limit: 200
# 鍚庡彴token浜や簰鏂瑰紡
token:
# 榛樿涓簍rue锛宼oken灏嗗瓨鍏edis锛屽苟鍏锋湁鍗曠偣鐧诲綍鍔熻兘 璁句负false浣跨敤JWT浜や簰
@@ -169,13 +172,13 @@
# token涓瓨鍌ㄧ敤鎴锋潈闄愭暟鎹� 璁句负true寮�鍚悗鍙伩鍏嶆瘡娆¤姹傚啀鑾峰彇鐢ㄦ埛鏉冮檺锛屼絾鏈夊彲鑳藉鑷寸紪杈戞潈闄愯彍鍗曞悗鏃犳硶璇诲彇鍒版渶鏂版潈闄愭暟鎹紙闇�鐢ㄦ埛閲嶆柊鐧诲綍锛�
storePerms: true
# token杩囨湡鏃堕棿 redis妯″紡鏈夎姹傝嚜鍔ㄥ埛鏂帮紙鍒嗛挓锛�
- tokenExpireTime: 600
+ tokenExpireTime: 60000
# 鐢ㄦ埛閫夋嫨 淇濆瓨鐧诲綍鐘舵��/璁颁綇鎴� 瀵瑰簲token杩囨湡鏃堕棿锛堝ぉ锛�
saveLoginTime: 7
# 闄愬埗鐢ㄦ埛鐧婚檰閿欒娆℃暟锛堟锛�
loginTimeLimit: 10
# 閿欒瓒呰繃娆℃暟鍚庡灏戝垎閽熷悗鎵嶈兘缁х画鐧诲綍锛堝垎閽燂級
- loginAfterTime: 10
+ loginAfterTime: 1
# app搴旂敤 token浜や簰閰嶇疆
appToken:
# 鏄惁寮�鍚悓涓�骞冲彴鍗曡澶囩櫥闄嗭紙濡傚畨鍗撹澶囧彧鍏佽鐧诲綍涓�涓浉鍚岃处鍙凤紝鍚屾椂IOS璁惧鍙厑璁镐竴涓澶囩櫥闄嗭級
@@ -293,6 +296,15 @@
- /xboot/orderSyn/**
- /hk/**
- /xboot/wx/**
+ - /index.html
+# - /xboot/pcStatistic/**
+# - /xboot/pcStatistic2/**
+# - /xboot/pcStatistic3/**
+# - /xboot/area/getAll
+# - /xboot/areaSection/getAll2
+ - /xboot/message/**
+ - /xboot/updateApp/**
+ - /xboot/fingerprint/getUserByCode
# 闄愭祦鍙婇粦鍚嶅崟涓嶆嫤鎴殑璺緞
limitUrls:
- /**/*.js
@@ -329,14 +341,14 @@
title: XBoot API鎺ュ彛鏂囨。
description: XBoot Api Documentation
version: 1.0.0
- termsOfServiceUrl: http://xboot.exrick.cn
+ termsOfServiceUrl: http://xxxx
contact:
- name: Exrick
- url: http://blog.exrick.cn
- email: 1012139570@qq.com
+ name: xxx
+ url: http://blog.xxx.cn
+ email: xxxx@qq.com
# 鍒嗙粍鍚�
- group: 1.XBoot绠$悊鎺ュ彛 v1.0
- group2: 2.XBoot APP鎺ュ彛 v1.0
+ group: 1.鎺ュ彛 v1.0
+ group2: 2.APP鎺ュ彛 v1.0
# Mybatis-plus
mybatis-plus:
@@ -358,4 +370,4 @@
# 鏈�澶т繚瀛樺ぉ鏁�
max-history: 7
# 姣忎釜鏂囦欢鏈�澶уぇ灏�
- max-file-size: 5MB
\ No newline at end of file
+ max-file-size: 5MB
--
Gitblit v1.9.1