自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(157)
  • 收藏
  • 关注

转载 安装golang web框架 gin

gin 地址https://github.com/gin-gonic/gin#installation去gin 地址 clone 下来,放到对应的包中即可。如:gin就放在项目文件夹/github.com/github.com/ 这个文件夹里面即可使用。转载于:https://www.cnblogs.com/thankyouGod/p/11542472.html...

2019-09-18 15:27:00 170

转载 springboot跨域处理

/** * @author [email protected] * 跨域处理 */@Configurationpublic class CorsConfig { @Bean public FilterRegistrationBean<CorsFilter> corsFilter() { UrlBasedCorsCon...

2018-07-06 09:48:00 177

转载 maven加载第三方jar包

     <dependency> <groupId>com.yeepay</groupId> <artifactId>yop-sdk</artifactId> <version>2.0.0-RC4</version&g...

2018-06-15 15:00:00 342

转载 springboot设置返回值的编码

/** * @param params * @return 志诚阿福 来访问 */ @PostMapping(value = "/fromAFu", produces = "text/plain;charset=UTF-8") public String fromAFu(String params) { ...

2018-06-01 09:33:00 1006

转载 centos7安装jdk

centos7安装jdk下载jdk jdk-8u151-linux-x64.tar.gz放到 /usr/local 目录里面解压缩 tar -zxvf jdk-8u151-linux-x64.tar.gz修改 /etc/profile 在文件末尾添加JAVA_HOME=/usr/local/jdk1.8.0_151/CLASSPATH=.:$JAVA_HOME/jre/l...

2018-04-28 15:52:00 77

转载 webpack打包页面空白的解决方法

转载于:https://www.cnblogs.com/thankyouGod/p/8926776.html

2018-04-24 10:44:00 870

转载 centos7 设置mongodb远程连接

/etc/mongod.conf更改bindIp: 127.0.0.1为bindIp: 0.0.0.0转载于:https://www.cnblogs.com/thankyouGod/p/8867674.html

2018-04-17 16:43:00 121

转载 计算两个坐标点之间的点的坐标

<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>计算两个坐标点之间的点的坐标</title> <meta name="viewport" content="width...

2018-03-23 13:15:00 1207

转载 vim 设置字体和解决乱码

在 C:\Program Files (x86)\Vim目录中的_vimrc文件中加入下面两行set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1set guifont=Courier\ New:h14set number转载于:https://www.cnblogs.com/thankyo...

2018-03-08 08:52:00 129

转载 webpack无法通过 IP 地址访问 localhost 解决方案

解决方案:在config里面的index.js里面的module.exports下面的dev下面的host:'localhost' 改为 host:'0.0.0.0',就可以访问啦!转载于:https://www.cnblogs.com/thankyouGod/p/8327514.html...

2018-01-22 09:22:00 171

转载 添加git忽略文件

把之前的文件添加作为忽略文件 先把本地缓存删除(改变成未track状态),然后再提交gitrm-r--cached.gitadd.gitcommit-m'commitloginfo'转载于:https://www.cnblogs.com/thankyouGod/p/8034010.html...

2017-12-13 17:26:00 76

转载 npm更新和nodejs更新

npm更新和nodejs更新更新你已经安装的NPM库,这个很简单,只需要运行。npm update -g更新Nodejs自身。一直依赖我都是下载最新版的源码,然后make install,及其繁琐。其实只需要运行以下2个命令即可:npm install -g n n latest转载于:https://www.cnblogs.com/thankyouGod/...

2017-12-12 14:47:00 71

转载 webapp定位

<!doctype html><html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewpo...

2017-12-11 23:50:00 135

转载 springmvc解决跨域问题

public class SimpleCORSFilter implements Filter { public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { ...

2017-12-05 17:05:00 79

转载 生成vuejs项目

生成项目npm i -g vue-cli> mkdir my-project && cd my-project> vue init webpacknpm i && npm i element-uinpm run build转载于:https://www.cnblogs.com/thankyou...

2017-12-03 22:40:00 80

转载 vuejs项目打包成APP后,首页不显示

转载于:https://www.cnblogs.com/thankyouGod/p/7967744.html

2017-12-03 22:39:00 501

转载 springboot解决跨域问题

package ll.highway.util;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web....

2017-11-24 14:38:00 76

转载 jquery请求数据

$(document).ready(function() {$.ajax({url: "http://123.207.88.84:8080/zdm/AppApi/Search/CategoryList",data: sendData,type: "POST",dataType: "json",}).done(function(json) {_this.me...

2017-10-28 22:49:00 84

转载 mui请求数据

var rh = new Object(); rh.ReqId = "ls123"; rh.Salt = "sssseee"; var rb = new Object(); rb.CatId = "00001";...

2017-10-28 22:47:00 163

转载 io.Writer

var w io.Writer// 设置为你的 io.Writervar b bytes.Bufferfmt.Fprint(&b, "Hello World")w = &bfmt.Println("===== ", w)orm.DebugLog = orm.NewLog(w)转载于:https://www.cnblogs.com/thankyouGo...

2017-10-07 20:09:00 179

转载 golang接收get/post请求并返回json数据

// @router /d2 [post]func (c *MainController) D2() {// jsoninfo := c.GetString("ok")// if jsoninfo == "" {// c.Ctx.WriteString("jsoninfo is empty")// return// }id := c.GetString("id")//id...

2017-10-06 21:02:00 2360

转载 golang安装环境变量配置和beegoan安装

下载安装go get github.com/astaxie/beegobee 工具的安装go get github.com/beego/bee升级$ go get -u github.com/astaxie/beego$ go get -u github.com/beego/bee转载于:https://www.cnblogs.com/thankyouGod/p/7...

2017-09-28 20:55:00 166

转载 ubuntu命令

tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gzsudo apt-get -f install #修复安装sudo apt-get clean && sudo apt-get autoclean #清理无用的包whereis 命令查找文件位置。ubuntu 升级软件: sudo apt-get update ...

2017-09-27 15:22:00 92

转载 mac获取root权限

sudo -i 或 sudo su转载于:https://www.cnblogs.com/thankyouGod/p/7580971.html

2017-09-23 13:49:00 66

转载 centos7安装解压缩工具 ncompress

yum install ncompress转载于:https://www.cnblogs.com/thankyouGod/p/7568771.html

2017-09-21 15:17:00 414

转载 ubuntu17.04 配置go环境变量

把官网下载好的tar解压后,go文件夹放到 /usr/local 目录下在当前用户的 .bashrc 文件末尾添加 这句话 export PATH=$PATH:/usr/local/go/bin执行 source ./.bashrc 让刚才的添加立即生效执行 go version 检查安装是否成功转载于:https://www.cnblogs.com/thankyouGo...

2017-08-14 21:09:00 211

转载 vue.js 拦截器

document.cookie = "mylogin=1";//1:登陆成功;保存登录状态main.jsrouter.beforeEach((to, from, next) => { if (to.meta.requireAuth) { // 判断该路由是否需要登录权限 var login = 0; console.log("-------------...

2017-08-07 13:35:00 139

转载 ubuntu 安装jdk

1.添加ppa sudo add-apt-repository ppa:webupd8team/java sudo apt-get update2.安装oracle-java-installer jdk7sudo apt-get install oracle-java7-installer jdk8sudo apt-get install oracle-java8...

2017-08-06 15:10:00 46

转载 ubuntu安装deb文件

install the deb-package, e.g. using the Terminal command$ sudo apt install <path-to-smartgit-deb-file> 例如:sudo apt install ./sougou.debon newer Linux versions or using$ sudo dpkg -i &lt...

2017-08-06 13:39:00 99

转载 ubuntu 安装 flashplayer

sudo apt-get install flashplugin-installer转载于:https://www.cnblogs.com/thankyouGod/p/7291772.html

2017-08-05 22:25:00 90

转载 ubuntu常用命令

alt+/ 自动补全ls -al 查看隐藏文件rm -d 目录名 #删除一个空目录rmdir 目录名 #删除一个空目录rm -r 目录名 #删除一个非空目录rm 文件名 #删除文件sudo apt-get --purge remove 要卸卸载的软件sudo a...

2017-08-05 18:24:00 67

转载 ubuntu 安装Nodejs

ubuntu 安装Nodejs1.在软件管理器里面安装nodejs2.由于版本很老,所以需要更新版本:先安装npm , sudo apt install npm然后用npm安装 n 命令,更新node版本。sudo npm install -g n安装好 n 命令后,执行 sudo n stable 更新nodejs版本。node -v 查看更新后打版本。转载于:https://ww...

2017-08-04 19:31:00 71

转载 从服务器上拿去东西下来

yum install lrzszsz filename 下载rz 打开上传窗口方法一:直接用yum安装lrzsz(推荐)yum install lrzsz -y注意:rhel安装完系统后 直接可使用 rz sz测试:运行rz弹出SecureCRT上传窗口,安装成功。这是个非常方便的工具。sz filename 下载rz上传rz...

2017-07-13 11:10:00 80

转载 js操作pdf

https://pdfobject.com/转载于:https://www.cnblogs.com/thankyouGod/p/7149237.html

2017-07-11 10:17:00 105

转载 mac显示隐藏文件

打开终端,输入:defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件defaults write com.apple.finder AppleShowAllFiles -bool false 此命令关闭显示隐藏文件命令运行之后需要重新加载Finder:快捷键option+comm...

2017-07-10 11:33:00 57

转载 生成密码

package me.cf81.util;import me.cf81.commons.utils.EncryptUtils;import java.util.UUID;/** * 生成密码 * */public class GeneratePassword { public void testPassword() { ...

2017-06-28 11:09:00 71

转载 elementUI增加同级下级

<template> <div> <el-row> <el-col :span="4"> <el-button v-on:click="increase(1)" type="info">增加同级</el-button> </el-col>...

2017-06-28 10:12:00 543

转载 Oracle 报 ORA-21561: OID generation failed 错误 mac 链接oracle

简单的说:在终端输入:sudo scutil --set HostName localhost转载于:https://www.cnblogs.com/thankyouGod/p/7039552.html

2017-06-17 10:40:00 200

转载 激活idea

输入激活ideahttp://61.183.194.34:41017转载于:https://www.cnblogs.com/thankyouGod/p/7000760.html

2017-06-13 13:51:00 87

转载 element-ui tree组件 return span 标签报错

原因:webpack无法解析vue-jsx的语法问题解决方案(1).安装依赖 [babel-plugin-transform-vue-jsx][1] npm install\ babel-plugin-syntax-jsx\ babel-plugin-transform-vue-jsx\ babel-helper-vue-jsx-merge-...

2017-06-05 15:25:00 523

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除