Merge remote-tracking branch 'origin/master'

This commit is contained in:
YoVinchen 2023-06-25 22:37:39 +08:00
commit 644ffea8b9
1 changed files with 76 additions and 1 deletions

View File

@ -1,5 +1,11 @@
## 一、云尚办公系统
[总后端](https://github.com/yovinchen/guigu-oa-parent)
[管理端](https://github.com/yovinchen/guigu-oa-admin)
[员工端](https://github.com/yovinchen/guigu-oa-web)
### 1、介绍
云上办公系统是一套自动办公系统用户可以通过手机微信扫码关注公众号在公众号上进行OA审批流程
@ -49,4 +55,73 @@
4.项目中使用JWT加密token用作用户登录身份校验用 SpringSecurity 来做权限控制,涉及多表查询,是项目的重点
5.
###5、后端常见问题
#### 5.1、跨域问题
访问协议: http https
ip地址域名 oa.atguigu.com oa.baidu.com
端口号8800 9528
多种解决方式:
1在controller类上面添加注解
2在前端进行配置
#### 5.2、mapper扫描问题
```java
//第一种方式 :创建配置类,使用@MapperScan注解
@Configuration
@MapperScan(basePackages = {"com.atguigu.auth.mapper","com.atguigu.process.mapper","com.atguigu.wechat.mapper"})
public class MybatisPlusConfig {
}
//第二种方式在mapper的接口上面添加注解 @Mapper
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
}
```
#### 5.3、xml文件加载问题
Maven默认情况下在src - main -java目录下面只会加载java类型文件其他类型文件不会加载的
第一种解决方式把xml文件放到resources目录下
第二种解决方式在pom.xml和项目配置文件进行配置
#### 5.4、流程定义部署zip文件
zip文件规范要求
1zip文件名称和流程key保持一致
例如:<process id="qingjia" isExecutable="true"> 文件名称 qingjia.zip
2在zip文件打包xml文件xml文件命名 .bpmn20.xml
例如jiaban.bpmn20.xml
#### 5.5、内网穿透问题
接口和页面在本地localhost公众号不能直接访问本地路径的需要使用内网穿透
有两个用途:
第一个:公众号页面通过内网穿透到本地页面 9090
第二个:公众号里面接口通过内网穿透到本地接口 8800