From 84076680701cc7a5f91f649861e09fb026a93ce0 Mon Sep 17 00:00:00 2001 From: zxf <604804177@qq.com> Date: Fri, 28 Jul 2023 13:38:57 +0800 Subject: [PATCH] 1 --- README.md | 48 ------------------- zxf-admin/pom.xml | 3 ++ .../src/main/java/com/zxf/zxfApplication.java | 2 + .../src/main/resources/application-druid.yml | 5 +- zxf-admin/src/main/resources/application.yml | 4 +- .../zxf/framework/config/SecurityConfig.java | 2 + 6 files changed, 12 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index f203a26..691e4b5 100644 --- a/README.md +++ b/README.md @@ -37,51 +37,3 @@ - 使用文档:https://www.yuque.com/u1024153/icipor ## 其它业务系统 - -- [[ 智慧农业认养系统 ]](https://gitee.com/tony2y/smart-breed):基于Java + SpringBoot + Mybatis Plus + Redis + Vue + antdv,支持认养、商城、营销、会员、进销存、多租户等功能,包含小程序,系统管理后台。 -- [[ 智慧景区管理系统 ]](https://gitee.com/tony2y/scenic-spot):基于Java + SpringBoot + Mybatis Plus + Redis + Vue + antdv,支持景区管理、售票、地块管理、认养、商城、农资管理、积分兑换等功能,包含小程序,系统管理后台。 - - -## 联系方式 - -付费版咨询、技术咨询、项目定制开发等其它支持可扫码添加微信进行沟通交流。 - -![微信](https://foruda.gitee.com/images/1673021725627728693/f3d6216b_2042292.jpeg) -## 工作流交流群 - -QQ群: [![加入QQ群](https://img.shields.io/badge/782924350-blue.svg)](https://jq.qq.com/?_wv=1027&k=2zE87c2G) 点击按钮入群。 - -## 请作者喝杯咖啡 ~ (*^▽^*) - - - -## 演示图 - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - diff --git a/zxf-admin/pom.xml b/zxf-admin/pom.xml index 0c89c8e..9d19833 100644 --- a/zxf-admin/pom.xml +++ b/zxf-admin/pom.xml @@ -66,6 +66,9 @@ zxf-flowable + + + diff --git a/zxf-admin/src/main/java/com/zxf/zxfApplication.java b/zxf-admin/src/main/java/com/zxf/zxfApplication.java index af970da..558cc0d 100644 --- a/zxf-admin/src/main/java/com/zxf/zxfApplication.java +++ b/zxf-admin/src/main/java/com/zxf/zxfApplication.java @@ -26,4 +26,6 @@ public class zxfApplication " | | \\ / \\ / \n" + " ''-' `'-' `-..-' "); } + + } diff --git a/zxf-admin/src/main/resources/application-druid.yml b/zxf-admin/src/main/resources/application-druid.yml index 6e6ba26..39acfac 100644 --- a/zxf-admin/src/main/resources/application-druid.yml +++ b/zxf-admin/src/main/resources/application-druid.yml @@ -6,9 +6,10 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://10.0.24.12:3306/zxfuser?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true + #url: jdbc:mysql://101.43.135.234:13306/zxfuser?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true + url: jdbc:mysql://10.0.24.12:13306/zxfuser?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true username: root - password: root123456 + password: uErE2caphG,g@zxf # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/zxf-admin/src/main/resources/application.yml b/zxf-admin/src/main/resources/application.yml index a0b9e47..c7b9020 100644 --- a/zxf-admin/src/main/resources/application.yml +++ b/zxf-admin/src/main/resources/application.yml @@ -73,7 +73,7 @@ spring: redis: # 地址 # host: www.zxfltt.icu - host: 101.43.135.234 + host: 127.0.0.1 # 端口,默认为6379 port: 6379 # 数据库索引 @@ -141,4 +141,4 @@ flowable: async-executor-activate: false wx: AppId: wx9726c3834fcb3bd1 - AppSecret: 28ac26ddbef7722863b512380513d66f \ No newline at end of file + AppSecret: 28ac26ddbef7722863b512380513d66f diff --git a/zxf-framework/src/main/java/com/zxf/framework/config/SecurityConfig.java b/zxf-framework/src/main/java/com/zxf/framework/config/SecurityConfig.java index 667339e..710b054 100644 --- a/zxf-framework/src/main/java/com/zxf/framework/config/SecurityConfig.java +++ b/zxf-framework/src/main/java/com/zxf/framework/config/SecurityConfig.java @@ -112,6 +112,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .authorizeRequests() // 对于登录login 注册register 验证码captchaImage 允许匿名访问 .antMatchers("/login", "/register", "/captchaImage").permitAll() + .antMatchers("/actuator/**").anonymous() + // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()