Update README.md

This commit is contained in:
YoVinchen 2023-06-25 22:27:18 +08:00 committed by GitHub
parent 4e77f3c340
commit 46ece32617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 70 additions and 1 deletions

View File

@ -55,4 +55,73 @@
4.项目中使用JWT加密token用作用户登录身份校验用 SpringSecurity 来做权限控制,涉及多表查询,是项目的重点 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**