fix: 修改部分缺陷
This commit is contained in:
parent
08ce9caa60
commit
77334e3357
|
@ -25,19 +25,20 @@ Gitee地址
|
||||||
|
|
||||||
### Docker配置
|
### Docker配置
|
||||||
|
|
||||||
配置的端口号是8000根据自己需求进行更改
|
配置的端口号是8000根据自己需求进行更改,当然这些配置都可以修改,但是`"/www/root/server"`这个不能改,除非不需要动态修改配置文件
|
||||||
|
|
||||||
- 如果需要访问内部docker或者有这种需求访问宿主机docker,需要配置下面三个文件,这三个文件需要对应你的宿主机上的位置,下面展示的三个是服务容器中的地址,之后需要使用docker命令绑定映射这三个文件夹位置即可。
|
- 如果需要访问内部docker或者有这种需求访问宿主机docker,需要配置下面三个文件,这三个文件需要对应你的宿主机上的位置,下面展示的三个是服务容器中的地址,之后需要使用docker命令绑定映射这几个文件夹位置即可。
|
||||||
|
|
||||||
``` dockerfile
|
``` dockerfile
|
||||||
VOLUME /usr/bin/docker
|
VOLUME /usr/bin/docker
|
||||||
VOLUME ["/var/run/docker.sock"]
|
VOLUME ["/var/run/docker.sock"]
|
||||||
VOLUME /etc/docker/daemon.json
|
VOLUME /etc/docker/daemon.json
|
||||||
|
VOLUME ["/www/root/backup"]
|
||||||
|
VOLUME ["/www/root/server"]
|
||||||
```
|
```
|
||||||
|
|
||||||
- 备份资源和基础路径设置
|
- 备份资源和基础路径设置,如果是需要备份数据库,比如你的数据库就在本机那么可以使用这个文件夹,之后需要映射这个数据卷
|
||||||
|
|
||||||
- 备份资源如果是需要备份数据库,比如你的数据库就在本机那么可以使用这个文件夹,之后需要映射这个数据卷
|
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
VOLUME ["/www/root/backup"]
|
VOLUME ["/www/root/backup"]
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -187,4 +187,5 @@
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -201,6 +201,9 @@ public class RouterServiceImpl extends ServiceImpl<RouterMapper, Router> impleme
|
||||||
// 判断更新数据id和父级id是否重复
|
// 判断更新数据id和父级id是否重复
|
||||||
if (dto.getId().equals(dto.getParentId())) throw new BunnyException(ResultCodeEnum.ILLEGAL_DATA_REQUEST);
|
if (dto.getId().equals(dto.getParentId())) throw new BunnyException(ResultCodeEnum.ILLEGAL_DATA_REQUEST);
|
||||||
|
|
||||||
|
// 如果设置的不是外部页面
|
||||||
|
if (!dto.getMenuType().equals(2)) router.setFrameSrc("");
|
||||||
|
|
||||||
router = new Router();
|
router = new Router();
|
||||||
BeanUtils.copyProperties(dto, router);
|
BeanUtils.copyProperties(dto, router);
|
||||||
updateById(router);
|
updateById(router);
|
||||||
|
|
|
@ -46,6 +46,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +85,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, AdminUser> implemen
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmailTemplateMapper emailTemplateMapper;
|
private EmailTemplateMapper emailTemplateMapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RoleMapper roleMapper;
|
private RoleMapper roleMapper;
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, AdminUser> implemen
|
||||||
emailFactory.sendEmailTemplate(email, emailTemplate, hashMap);
|
emailFactory.sendEmailTemplate(email, emailTemplate, hashMap);
|
||||||
|
|
||||||
// 在Redis中存储验证码
|
// 在Redis中存储验证码
|
||||||
redisTemplate.opsForValue().set(RedisUserConstant.getAdminUserEmailCodePrefix(email), emailCode);
|
redisTemplate.opsForValue().set(RedisUserConstant.getAdminUserEmailCodePrefix(email), emailCode, RedisUserConstant.REDIS_EXPIRATION_TIME, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,8 @@ mybatis-plus:
|
||||||
map-underscore-to-camel-case: true
|
map-underscore-to-camel-case: true
|
||||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bunny:
|
bunny:
|
||||||
master:
|
master:
|
||||||
host: 192.168.3.98
|
host: 192.168.3.98
|
||||||
|
|
|
@ -87,8 +87,6 @@ management:
|
||||||
enabled: true
|
enabled: true
|
||||||
os:
|
os:
|
||||||
enabled: true
|
enabled: true
|
||||||
git:
|
|
||||||
mode: full
|
|
||||||
|
|
||||||
endpoint:
|
endpoint:
|
||||||
health:
|
health:
|
||||||
|
|
Loading…
Reference in New Issue