- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 vue-pdf 跨域解决方案 ( has been blocked by cors policy )
vue-pdf 跨域解决方案 ( been blocked by cors policy )问题:vue-pdf 渲染资源的时候出现跨域问题 been blocked by cors policy尝试过很多方法都没有解决问题,前端是没办法解决了所以把目光集中到了资源本身。解决方案:PDF 文件作为静态资源放在 nginx服务器中。在 nginx.conf 中设置: add_header Access-Control-Allow-Credentials true; add_header
2021-11-30 16:06:41
7779
原创 Linux 脚本 自动启动 jar包 自动启动springboot
Linux 启动脚本,自动启动 springboot 程序。命令:sh xx.sh start (启动)sh xx.sh stop (停止)sh xx.sh restart (重启)sh xx.sh status (启动状态)在idea 使用 Alibaba Cloud Toolkit自动部署项目到阿里云ECS中使用的是 sh xx.sh restart#!/bin/bashexport JAVA_HOME=/usr/local/java/jdk1.8.0_191export JR.
2020-12-28 16:24:57
661
原创 idea 使用 Alibaba Cloud Toolkit自动部署项目到阿里云ECS
敏捷开发中常常一边改bug一边给测试小姐姐部署QA环境,总是手忙脚乱切换程序打包、上传、SSH、kill 程序再启动,浪费了大量时间弄的我很烦躁,所以想找找有什么简化的办法,Alibaba Cloud Toolkit 出现在我面前。介绍一下项目中 Alibaba Cloud Toolkit 的使用过程,希望能给大家带来一点引导和帮助。准备工作:登陆阿里云找到自己的AccessKey若没有可以创建一个查看Secretidea 插件仓库下载并安装 Alibaba Cloud Toolkit.
2020-12-28 16:07:44
556
原创 electron-vue 引入 element ui el-table 失效不显示问题解决
electron-vue 引入 element ui el-table 失效不显示问题解决el-table 标签失效原因:electron 变异规则导致异常解放方法:webpack.renderer.config.js 中添加白名单 element-uilet whiteListedModules = ['vue', 'element-ui']如图:...
2020-09-10 11:32:13
1035
原创 electron-vue 项目启动 ReferenceError: process is not defined 异常解决方法
electron-vue 项目启动 ReferenceError: process is not defined 异常解决方法解决方法: 在 webpack.web.config.js 和 webpack.renderer.config.js 中的 new HtmlWebpackPlugin内添加如下代码templateParameters(compilation, assets, options) { return { compilation: compilation,
2020-09-10 10:51:54
1688
原创 Mac OS 安装 wine?
Mac OS 为什么要安装 wine?Mac OS 开发 electron-vue 项目打包 Windows 程序异常, 显示:error: could not find "wine" on your system.wine 安装方式不止一种, 本文选择最简单的方法打开 Mac 终端执行命令:brew search winebrew install monozhangguihong@root ~ % brew search wine ==> Fo
2020-09-10 10:27:59
1130
原创 Springboot 集成 Caffeine
Springboot 集成 Caffeine我的博客: http://www.izuul.comCaffeine 是个高性能的开源 Java 内存缓存库,具有较高的命中率和出色的并发能力。在 Spring Boot 中集成也非常简单,提供了各种开箱既用的工具。Caffeine 并不是分布式缓存.Springboot 中引用的依赖 <dependencies> ...
2019-06-19 16:34:01
7992
原创 Springboot 集成 Redis (二)
本篇将进行 Springboot 中使用注解的形式调用 Redis 进行缓存操作我的博客: http://www.izuul.com在此之前, 先来介绍一下 spring 中相关注解的应用@Cacheable 作用和配置方法@Cacheable 的作用 主要针对方法配置,能够根据方法的请求参数对其结果进行缓存@Cacheable 主要的参数value缓存的名称,在 sp...
2019-06-19 16:30:39
166
原创 Springboot 集成 Redis (一)
Redis介绍 (介绍来源于网络)我的博客: http://www.izuul.com/Redis是一个开源的高性能的key-value存储系统。具有以下特点:1、Redis支持数据的持久化,可以将内存中的数据保持在磁盘中,重启的时候可以再次加载进行使用。2、Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,sorted set,hash等数据结构的存储。...
2019-04-09 23:13:35
266
原创 Springboot 集成Spring Security教程 (三)
这一篇将进行 Security 从数据库读取用户信息及权限我的博客: http://www.izuul.com/数据库采用 Mysql, ROM 采用 JPA首先进行 JPA 的配置, 在 application.properties 中添加(JPA 的使用将在后续文章中做记录)spring.datasource.driver-class-name=com.mysql.cj.jdbc.Dr...
2019-04-09 23:09:58
1512
1
原创 Springboot 集成Spring Security教程 (二)
本文我们继续 Springboot 集成 Security, 在本文中我们将实现自定义登录验证信息上篇教程 (一): http://www.izuul.com/index.php/2019/04/05/springboot-security1/我的博客: http://www.izuul.com在上篇基础上新建 config 包, 并且新建 SecurityConfig 配置类一. 在内存...
2019-04-05 17:34:16
3158
1
原创 Springboot 集成Spring Security教程 (一)
Springboot 集成Spring Security教程 (一)写在前面: 本文只做 Springboot 集成 security 的集成教程, 概念性的东西自行Google官网: https://spring.io/projects/spring-security我的博客: http://www.izuul.com创建Springboot项目推荐使用 idea, 本文就是使用 i...
2019-04-05 17:30:43
3117
原创 使用idea制作springboot的docker镜像
一. 在idea中安装docker插件插件 Docker integration二. 将springboot项目打包成可执行的jar包打包后生成的jar包在target下例如: jar包路径为 target/control-cloud-2.4.0-RC1.jar三. 在项目根目录下创建Dockerfile# From java image, version : 8FRO...
2018-12-20 14:30:44
1556
原创 Java 中的各种进制转化 EncodeUtil
EncodeUtil Java 中常用的进制转化package cn.shijinet.kunlun.packagecontrol.util;/** * @author: Eric * @Date: 2018-12-14 15:00 **/public class EncodeUtil { public static String convertAsc2ToStrin...
2018-12-20 13:22:38
725
原创 Spring 中全局异常处理 @ExceptionHandler
最近在项目中整理了一些关于 Springboot 和 Spring 的 Exception 处理, 记录下来也分享给其他需要的人.学习全局异常处理之前, 首先我们来了解两个注解. @ControllerAdvice 和 @ExceptionHandler @ControllerAdvice : 可以显式声明为 Spring beans 或通过类路径扫描自动检测.其实可以理解成 @C...
2018-10-18 21:20:56
888
原创 Spring boot 整合 log4j2
1. 删除 springboot 中默认集成的 logback <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId...
2018-10-17 08:14:48
503
Websocket工具
2022-05-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人