03 2022 档案
redis安装
摘要:1、下载地址 http://redis.io/download tar -zxvf /usr/local/redis-6.0.8.tar.gz -C /usr/local/redis/redis-6.0.8cd /usr/local/redis/redis-6.0.8make 执行完 make 命令 阅读全文
posted @ 2022-03-20 16:18 ttke 阅读(37) 评论(0) 推荐(0)
idea 操作git
摘要:1、设置git路径 file-setting--versionControl--git 再path to git exxcutable中设置git/bin/git.exe 2、git工具栏显示操作 file-setting--versionControl 点击version control再右侧修改 阅读全文
posted @ 2022-03-10 15:51 ttke 阅读(57) 评论(0) 推荐(0)
validate 使用
摘要:使用步骤 再controller层中方法对象添加@valid @RequestBody 再验证实体类中添加@Data 其中属性不能大写开头 Springboot配置捕捉validate校验参数异常统一处理并自定义validate校验返回格式 1、添加一个异常处理类@ControllerAdvicep 阅读全文
posted @ 2022-03-04 15:03 ttke 阅读(392) 评论(0) 推荐(0)
修改项目名称
摘要:1、springboot项目 修改pom.xml中两处地方。如下: <groupId>com.ytkj.service</groupId> <artifactId>EmergencyManagement</artifactId><!-- 修改此处内容为新的项目名称 --> <version>1.0. 阅读全文
posted @ 2022-03-03 10:22 ttke 阅读(120) 评论(0) 推荐(0)
dubbo问题
摘要:1、spring boot注解问题 EnableDubbo 在主方法上添加此注解 Reference获取暴露服务 此包com.alibaba.dubbo.config.annotation.Reference下边的 Service dubbo提供的暴露服务,此包com.alibaba.dubbo.c 阅读全文
posted @ 2022-03-01 16:35 ttke 阅读(267) 评论(0) 推荐(0)