上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
摘要: 环境 Centos7.6 redis-3.0.0 下载 官网下载:http://download.redis.io/releases/redis-3.0.0.tar.gz 安装 解压 tar -xzvf redis-3.0.0.tar.gz 解压目录如下所示: 安装 make PREFIX=/usr 阅读全文
posted @ 2020-12-19 13:55 Maggieq8324 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 环境 win10 python3.7 Django3.1.3 步骤 cmd到工程目录下 建立虚拟环境 python -m venv ll_env 激活虚拟环境 ll_env\Scripts\activate 关闭虚拟环境(可选) deactivate 安装Django pip install Dja 阅读全文
posted @ 2020-11-11 21:13 Maggieq8324 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 环境 win10 python3.7 mysql5.7 方法 pymysql pip install pymysql xxx.py # -*- coding:utf-8 -*- import pandas as pd import pymysql import time, datetime def 阅读全文
posted @ 2020-10-29 21:43 Maggieq8324 阅读(2166) 评论(0) 推荐(0) 编辑
摘要: MySQL server has gone away 该错误为导入较大SQL文件出现的 解决办法: 查看接受包的大小 show variables like '%max_allowed_packet%' 修改接受包的大小为1G set global max_allowed_packet = 1024 阅读全文
posted @ 2020-10-24 17:00 Maggieq8324 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 最近需要读取excel中的数据写入数据库,记录一下: my.py # -*- coding:utf-8 -*- import numpy as np import xlrd #打开excel文件 # 拼接字符串函数 def editstr(row): values = "("; for i in r 阅读全文
posted @ 2020-10-24 15:47 Maggieq8324 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 打源码包 <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <forkMode>once</fo 阅读全文
posted @ 2020-10-15 19:25 Maggieq8324 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 环境 Centos7.6 nginx-1.17.0 下载 官网:http://nginx.org/download/nginx-1.17.0.tar.gz 环境确认 在安装nginx前首先要确认系统中是否安装gcc、pcre-devel、zlib-devel、openssl-devel 检查是否安装 阅读全文
posted @ 2020-10-14 21:09 Maggieq8324 阅读(1040) 评论(0) 推荐(0) 编辑
摘要: python程序执行import pandas,错误提示如下: 环境变量仅设置 set Path=%Path%;D:xxx\install\Anaconda3 解决:添加环境变量Anaconda3\Library\bin set Path=%Path%;D:xxx\install\Anaconda3 阅读全文
posted @ 2020-09-19 16:59 Maggieq8324 阅读(950) 评论(0) 推荐(0) 编辑
摘要: ClassUtils.java public class ClassUtils { /** * 截取最后的类名 * @param clazzName * @return */ public static String getClassName(String clazzName) { return c 阅读全文
posted @ 2020-08-26 19:53 Maggieq8324 阅读(171) 评论(0) 推荐(0) 编辑
摘要: ListUtilsHook.java public interface ListUtilsHook<T> { public boolean find(T t); } ListUtils.java public class ListUtils { /** * List过滤出符合条件的元素 * @par 阅读全文
posted @ 2020-08-26 19:44 Maggieq8324 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: TOMCAT 在tomcat的web.xml配置文件中,对不安全的方法进行拦截,禁用TRACE,HEAD,PUT,DELETE,OPTIONS请求方式: <security-constraint> <web-resource-collection> <url-pattern>/*</url-patt 阅读全文
posted @ 2020-08-03 22:25 Maggieq8324 阅读(1974) 评论(0) 推荐(0) 编辑
摘要: 关于ssl配置可参考:https://ssl-config.mozilla.org/ TOMCAT 通过修改tomcat配置文件conf/server.xml,在端口下配置: sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" ciphers="TLS_RSA_W 阅读全文
posted @ 2020-08-03 22:10 Maggieq8324 阅读(2615) 评论(0) 推荐(0) 编辑
摘要: 环境 SpringBoot 1.5.20 Vue 2.5.2 SpringBoot 依赖 <!-- poi --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4 阅读全文
posted @ 2020-07-27 23:29 Maggieq8324 阅读(3438) 评论(2) 推荐(0) 编辑
摘要: 环境 Windows 10 SpringBoot 1.5.20 Vue 2.5.2 Nginx 1.12.2 OpenSSL-Win64 下载 Nginx官网下载:http://nginx.org/en/download.html 解压如下所示: 运行 cmd切换到nginx目录,执行命令: sta 阅读全文
posted @ 2020-07-27 22:36 Maggieq8324 阅读(2267) 评论(0) 推荐(0) 编辑
摘要: 环境 SpringBoot1.5.20 前言 SpringBoot项目中,spring-boot-starter已经包含了spring-boot-starter-logging,不需要再引入依赖 代码配置 LogConfig.java import java.net.InetAddress; imp 阅读全文
posted @ 2020-07-26 20:18 Maggieq8324 阅读(328) 评论(0) 推荐(0) 编辑
摘要: import javax.servlet.http.HttpServletRequest; import com.tbtech.common.utils.StringUtils; public final class RequestHelper { /* * 获取访问者IP * 在一般情况下使用Re 阅读全文
posted @ 2020-06-07 21:29 Maggieq8324 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 需求 近来项目中有个新需求,审计记录中除了用户的访问地址还需要包含事件具体描述,项目是集成了swagger的,开发时接口上都用@ApiOperation写了接口说明,出于偷懒的心理尝试了一波根据url反向查找类名,接口名,注解值,尝试之后甚是觉得不偷懒的搬砖工一定不是好的泥水匠。。。 实现思路 项目 阅读全文
posted @ 2020-06-07 21:23 Maggieq8324 阅读(2800) 评论(0) 推荐(0) 编辑
摘要: import java.text.SimpleDateFormat; import java.util.Calendar; public class test { private static String startDay = "2020-02-20"; public static void ma 阅读全文
posted @ 2020-06-07 20:53 Maggieq8324 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: Druid 是阿里巴巴开源平台上一个数据库连接池实现,是一个高效的数据查询系统,主要解决的是对于大量的基于时序的数据进行聚合查询 环境 SpringBoot 1.5.20 + Mysql5.6 + Druid1.1.6 DruidDataSource 基本配置参数 配置 默认值 说明 name 配置 阅读全文
posted @ 2020-06-07 20:41 Maggieq8324 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 一、Spring+CXF整合示例 WebService是一种跨编程语言、跨操作系统平台的远程调用技术,它是指一个应用程序向外界暴露一个能通过Web调用的API接口,我们把调用这个WebService的应用程序称作客户端,把提供这个WebService的应用程序称作服务端。 环境 win10+Spri 阅读全文
posted @ 2020-06-07 16:20 Maggieq8324 阅读(2300) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页