会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
智慧搬运工
博客园
首页
新随笔
联系
订阅
管理
2022年1月13日
Open-Feign 负载均衡组件
摘要: 依赖:<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId></dependency>open-feign集成rabbon采用注
阅读全文
posted @ 2022-01-13 21:23 智慧搬运工
阅读(56)
评论(0)
推荐(0)
2022年1月11日
linux系统 maven环境安装
摘要: 第一步:下载maven压缩包 第二步:解压(命令:tar -zxvf 包名) 第三步:编辑 /etc/profile文件(命令:vim /etc/profile) 添加环境变量 export MAVEN_HOME=/usr/local/src/apache-maven-3.5.4 export PA
阅读全文
posted @ 2022-01-11 19:41 智慧搬运工
阅读(224)
评论(0)
推荐(0)
linux系统配置 Java环境变量
摘要: 第一步:访问Oracle官网下载JDK 第二步:解压 (命令: tar -xvf 包名) 第三步:编辑 /etc/profile (命令: vim /etc/profile) 在编辑状态下添加下面代码: JAVA_HOME=/usr/java/jdk-17.0.1PATH=$PATH:$JAVA_H
阅读全文
posted @ 2022-01-11 18:32 智慧搬运工
阅读(325)
评论(0)
推荐(0)
2022年1月2日
数据库动态查询
摘要: 以更新为例子: @UpdateProvider注解的使用 : @UpdateProvider(type = 类名,method = 应用到的方法) @UpdateProvider(type = VideoProvider.class,method = "updateVideo")int update
阅读全文
posted @ 2022-01-02 23:21 智慧搬运工
阅读(70)
评论(0)
推荐(0)
2021年12月5日
查询带参接口引入本地缓存
摘要: try{ String videoCacheKey = String.format(CacheKeyManager.VIDEO_DETAIL,videoId); Object cacheObj = baseCache.getOneHourCache().get( videoCacheKey ,()-
阅读全文
posted @ 2021-12-05 11:27 智慧搬运工
阅读(68)
评论(0)
推荐(0)
guava缓存的简单使用
摘要: 创建工具类: import com.google.common.cache.Cache;import com.google.common.cache.CacheBuilder;import org.springframework.stereotype.Component;import java.ut
阅读全文
posted @ 2021-12-05 11:00 智慧搬运工
阅读(285)
评论(0)
推荐(0)
2021年12月3日
模拟下单模块开发
摘要: controller类:/** * 下单接口 */@PostMapping("save")public JsonData save(@RequestBody VideoOrderRequest videoOrderRequest, HttpServletRequest request){ Integ
阅读全文
posted @ 2021-12-03 21:48 智慧搬运工
阅读(59)
评论(0)
推荐(0)
个人查询开发
摘要: controller类:@GetMapping("find_by_token")public JsonData findByToken(HttpServletRequest request){//这里的getAttribute需要在拦截器中使用setAttribute才能获取到 Integer us
阅读全文
posted @ 2021-12-03 12:01 智慧搬运工
阅读(39)
评论(0)
推荐(0)
配置拦截器的放行路径
摘要: import com.example.online_class.interceptor.LoginInterceptor;import org.springframework.context.annotation.Bean;import org.springframework.context.ann
阅读全文
posted @ 2021-12-03 11:26 智慧搬运工
阅读(601)
评论(0)
推荐(0)
拦截器开发
摘要: import com.example.online_class.utils.JsonData;import com.example.online_class.utils.JwtUtils;import com.fasterxml.jackson.databind.ObjectMapper;impor
阅读全文
posted @ 2021-12-03 11:02 智慧搬运工
阅读(27)
评论(0)
推荐(0)
下一页
公告