会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
9529
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
15
下一页
2020年6月30日
centOS6.5安装zookeeper3.4.9
摘要: 1.linux打开终端,创建文件夹 2.下载zookeeper,利用SSH上传到linux文件夹 3.解压 tar -zxvf zookeeper-3.4.9.tar.gz 4.然后进入解压后的文件夹-》并进入conf文件夹,复制文件并且改名 5.vi zoo.cfg编辑,添加如下图 并创建对应的目
阅读全文
posted @ 2020-06-30 19:02 9529
阅读(85)
评论(0)
推荐(0)
2020年6月6日
Vue- 4 通过axios拦截器添加token请求
摘要: main.js操作 axios.interceptors.request.use(config=>{ console.log(config) config.headers.Authorization =window.sessionStorage.getItem('token') return con
阅读全文
posted @ 2020-06-06 22:47 9529
阅读(100)
评论(0)
推荐(0)
Vue-3 token+导航守卫
摘要: token的处理 { 保存token到sessionStorage中(token只在当前打开网站生效) window.sessionStorage.setItem('token',res.data.token) 通过编程式导航跳转后台 // 通过编程式导航跳转后台/home this.$router
阅读全文
posted @ 2020-06-06 19:08 9529
阅读(343)
评论(0)
推荐(0)
Vue-2 --登录界面
摘要: 实现: 界面实现表单规则校验结合后台 api 校验提示消息 App.vue <template> <div id="app"> <!--路由占位符 --> <router-view></router-view> </div> </template> <script> export default {
阅读全文
posted @ 2020-06-06 18:07 9529
阅读(803)
评论(0)
推荐(0)
2020年6月4日
VUE-1 项目的创建
摘要: 先安装node.js,我装的最新版。 然后安装vue/cli最新版, npm install -g @vue/cli 或者 yarn global add @vue/cli 然后cmd命令行,命令 vue ui ,打开可视化创建Vue项目。 安装相关的依赖, 配置VUE路由,配置axios库
阅读全文
posted @ 2020-06-04 23:43 9529
阅读(69)
评论(0)
推荐(0)
2020年5月23日
AJAX取值radio
摘要: 正确的操作 anonym为 input里面的name var anonym=$('input[type=radio][name=anonym]:checked').val()
阅读全文
posted @ 2020-05-23 21:49 9529
阅读(260)
评论(0)
推荐(0)
2020年5月4日
Springboot+easypoi批量上传下载
摘要: 直接上代码 pom <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-base</artifactId> <version>3.0.3</version> </dependency> <dependency> <grou
阅读全文
posted @ 2020-05-04 13:23 9529
阅读(133)
评论(0)
推荐(0)
2020年4月20日
spring security+thymeleaf登录失败以及验证码错误提示
摘要: 直接上代码 @Component public class CustomAuthenticationFailureHandler implements AuthenticationFailureHandler { @Autowired private ObjectMapper objectMappe
阅读全文
posted @ 2020-04-20 11:08 9529
阅读(626)
评论(0)
推荐(0)
2020年4月8日
项目中配置mysql8.0配置文件
摘要: spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/数据库?useUnicode=true&characterEncoding=utf-8&allowMult
阅读全文
posted @ 2020-04-08 10:08 9529
阅读(678)
评论(0)
推荐(0)
2020年3月31日
springboot+redis定时更新浏览数
摘要: 启动类添加注解: @EnableScheduling 定时任务类: 先获取所有的key,再将key转为int类型得到id,通过key获取得到redis中的值。 然后调用更新方法,为了避免重复更新,删除redis中的key-value。 0/10 * * * * ?表示每10秒执行一次 package
阅读全文
posted @ 2020-03-31 17:58 9529
阅读(312)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
15
下一页
公告