2021年3月17日

spring boot项目 直接访问图片处理(跳过token)

摘要: @Configurationpublic class WebConfig implements WebMvcConfigurer { @Autowired private JwtInterceptor jwtInterceptor; /** * 添加拦截器 */ @Override public v 阅读全文

posted @ 2021-03-17 14:44 博客海沐沐 阅读(1498) 评论(0) 推荐(0)

2020年5月14日

读取txt文件,并把文件类容转为String

摘要: 1.File file = new File("D:\\gis_1.txt");2. public static String txt2String(File file){ StringBuilder result = new StringBuilder(); try{ BufferedReader 阅读全文

posted @ 2020-05-14 15:17 博客海沐沐 阅读(1583) 评论(0) 推荐(0)

2020年5月13日

springBoot 项目在项目启动时修改dev或prod文件(在远程拉取的值)

摘要: 在启动类中加public static void main(String[] args) throws UnknownHostException { SpringApplication app = new SpringApplication(CtginmsPortalApplication.clas 阅读全文

posted @ 2020-05-13 15:19 博客海沐沐 阅读(1579) 评论(0) 推荐(0)

2020年5月11日

logback-spring.xml的配置

摘要: <?xml version="1.0" encoding="UTF-8" ?><!-- 从高到地低 OFF 、 FATAL 、 ERROR 、 WARN 、 INFO 、 DEBUG 、 TRACE 、 ALL --><!-- 日志输出规则 根据当前ROOT 级别,日志输出时,级别高于root默认的 阅读全文

posted @ 2020-05-11 15:21 博客海沐沐 阅读(880) 评论(0) 推荐(0)

2020年4月28日

nginx.config 记录一下配置(没有解释)

摘要: user root root;worker_processes 1; #设置值和CPU核心数一致error_log /usr/local/nginx/logs/nginx_error.log crit; #日志位置和日志级别pid /usr/local/nginx/nginx.pid;#Specif 阅读全文

posted @ 2020-04-28 14:01 博客海沐沐 阅读(267) 评论(0) 推荐(0)

java 导入excel 到Oracle数据库

摘要: package com.hcycom.datashare;import org.apache.poi.ss.usermodel.CellType;import org.apache.poi.ss.usermodel.Row;import org.apache.poi.xssf.usermodel.X 阅读全文

posted @ 2020-04-28 10:42 博客海沐沐 阅读(581) 评论(0) 推荐(0)

Java 过滤器 获取get参数和post请求json参数 (还有ip,X-Forwarded-For)存入数据库

摘要: 1,获取参数 package com.hcycom.ctginms.utils;import com.alibaba.fastjson.JSONObject;import org.apache.maven.shared.utils.StringUtils;import javax.servlet.R 阅读全文

posted @ 2020-04-28 10:38 博客海沐沐 阅读(4920) 评论(0) 推荐(0)

2020年3月24日

anaconda+python下载

摘要: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 阅读全文

posted @ 2020-03-24 14:41 博客海沐沐 阅读(155) 评论(0) 推荐(0)

2019年12月30日

随便记录

摘要: del 是从内存中删除 元组一旦定义就不能修改。。Tupe() 用list函数把元组转为列表 list(元组) 用tuple函数把列表转为元组 tuple(列表) 阅读全文

posted @ 2019-12-30 11:25 博客海沐沐 阅读(130) 评论(0) 推荐(0)

2019年10月21日

Java 携带header 请求Url并带Json参数

摘要: 1首先把json参数设置好 阅读全文

posted @ 2019-10-21 11:57 博客海沐沐 阅读(7141) 评论(0) 推荐(0)

导航