自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(146)
  • 资源 (8)
  • 收藏
  • 关注

原创 js模拟ctrl+f功能

js无法调用ctrl+f 模拟静态页面搜索

2022-08-29 15:05:18 1139 3

原创 json对象含有数组的比较相等

jquery jsonObj compare

2022-06-16 13:52:01 493

原创 telliJ IDEA Serializable 无设置项Serializableclasswithout‘serialVersionUID’ 解决方式

如果按照 setting->editor->inspections->java找不到此项那么打开inspections->JVM languages 项进行设置serializableclasswithout项勾选即可

2022-01-28 14:44:44 1567 1

原创 Flutter相关

decoration: InputDecorationInputDecoration({ this.icon, //位于装饰器外部和输入框前面的图片 this.labelText, //用于描述输入框,例如这个输入框是用来输入用户名还是密码的,当输入框获取焦点时默认会浮动到上方, this.labelStyle, // 控制labelText的样式,接收一个TextStyle类型的值 this.helperText, //辅助文本,位于输入框下方,如果err.

2021-09-28 11:02:56 196

原创 springcloud2020.0.3与sentinel整合问题

版本需要sentinel 2021.1版本父pom<dependencyManagement> <dependencies> <!--alibaba cloud--> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibab

2021-09-23 14:30:13 291

原创 TS类型断言作用

function swim(animal: Cat | Fish) { //类型断言用于解决 “不确定一个联合类型的变量到底是哪个类型的时候,我们只能访问此联合类型的所有类型中共有的属性或方法” //需要用typeof (animal as Cat).run === 'function' 作类型确定,否则使用不当会造成运行时错误 if(typeof (animal as Cat).run === 'function'){ console.log("Cat"); (animal as Cat).

2021-09-08 10:22:09 567

原创 实现记录日志

spring mvc 能过拦截器记录请求数据记录有很多种方式,主要有以下三种:1:过滤器2:HandlerInterceptor拦截器3:Aspect接口控制器但是就我个人所知要记录返回的数据,只能通过Aspect处理,以下是实现此需要的代码@Aspect@Configuration@Slf4jpublic class LogAspect { @Pointcut("execution(public * com.xx.control.*.*(..))") public

2021-08-24 16:23:13 152

原创 easyUi 本地加载数据并分页

function pagerFilter(data) { if (typeof data.length == 'number' && typeof data.splice == 'function') { // is array data = { total: data.length, rows: data } } .

2021-07-29 15:09:06 539

原创 springcloud熟记点

绕过网关缓存:地址前加/zuul默认情况下,所有的请求都经过Zuul网关的代理.Zuul底层就是一个servlet,通常情况下zuul会将请求交给Spring Dispatch去处理,SpringMVC去控制路由。这种情况下,zuul就会去缓存这个请求。如果有直接通过zuul但是不需要缓存:比如大文件的上传服务,这时候就应该跳过SpringDispatch,在地址前加一个 /zuul.普通请求并不会有什么影响,但是对于图片上传(文件传输),如果也经过Zuul网关的代理,文件就会经过多次网路传输,造

2021-07-15 10:38:48 226

原创 控制层接收复杂数据类型

2021-07-14 10:47:24 101

原创 jq json对象合并$.extend

相同属性则替换,不同属性增加属性req = {field:1,age:2}_req={field:5}$.extend(req,_req):req = {field:5,age:2}

2021-07-02 09:30:35 158

原创 生产者消费者-java 3种

文件准备fastdfs-xxx、fastdfs-client-java-master、fastdfs-nginx-module-master、libfastcommon-master、nginx-x.xx.x.tar

2021-06-24 11:25:57 119

原创 odoo安装到开发

配置环境后期补充安装和配置 Samba作用:Samba服务让我们能够在Linux下实现与Windows兼容的文件共享服务。在Debian/Ubuntu系统中,可以使用下列命令安装Samba服务:$ sudo apt-get install samba samba-common-bin...

2021-06-01 15:38:13 586 1

原创 hadoop配置 启动

配置文件均在hadoop-x.x.x/etc/hadoop子目录下配置核心文件 编辑core-site.xml文件<property> <name>fs.defaultFS</name> <value>hdfs://master:9000</value></property><property> //以下配置可以不配 <name>hadoop.tmp.dir</name> &lt

2021-04-15 17:44:52 234

原创 elasticsearch启动

1.找到安装的目录下,进入bin2.elasticsearch不能通过root用户启动(出于系统安全考虑设置的条件。由于ElasticSearch可以接收用户输入的脚本并且执行,为了系统安全考虑)3.su 子账户 进行切换 如果没有 则通过useradd xxx进行创建子账户4.执行bin目录中的脚本文件./elasticsearch 启动。如果遇到提示权限不足 就切回到root账户 到安装目录下执行chown xxx /usr/soft/elasticsearch-x.x.x -R,再从第3步

2021-04-13 17:04:04 8416

原创 aop 的advisor 来处理sql连接释放

1.添加对应持久层框架的事务管理器 <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> 2.通知 <tx:advice id="yyy" tran.

2021-04-12 17:01:00 153

原创 xml方式使用spring 定时任务 schedule

1.将需要执行任务的class 交由spring管理<bean id="xxx" class="com.xx.xx.UserClear"></bean>2.配置好spring的定时任务的调用类MethodInvokingJobDetailFactoryBean 去调这个任务的那个方法<bean id="UserClearJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetai

2021-04-12 16:53:04 391

转载 curl 断点续传

download:Linux: curl -C --u 'test':'test'ftp://ftp.test.com/test.tar.gzWin:curl -C --u "test":"test"ftp://ftp.test.com/test.rarupload:Linux: curl -C - -T test.tar.gz moc.src.tar -u 'test':'test'ftp://ftp.test.com/Win:...

2021-02-07 10:44:30 2909

原创 java-巧用代码结构-重要文档

@PostConstruct基本:@PostConstruct注解好多人以为是Spring提供的。其实是Java自己的注解。Java中该注解的说明:@PostConstruct该注解被用来修饰一个非静态的void()方法。被@PostConstruct修饰的方法会在服务器加载Servlet的时候运行,并且只会被服务器执行一次。PostConstruct在构造函数之后执行,init()方法之前执行。业务场景:都需要继承某一接口, 存在不同对象,作出不同响应,在中间层处理业务,但是可以通过不同的

2020-12-02 10:30:14 373

原创 java操作fdfs

FIrst:POM<dependency> <groupId>net.oschina.zcx7878</groupId> <artifactId>fastdfs-client-java</artifactId> <version>1.27.0.0</version></dependency>second:create Maven Project 并准备配置文件(来源:导入

2020-10-29 13:45:05 716

原创 分组排序取每组前x条数据

select a.*from(select t1.*,(select count(*)+1 from 表 where 分组字段=t1.分组字段 and 排序字段<t1.排序字段) as group_idfrom 表 t1) awhere a.group_id<=3 # 假设取前3条

2020-10-28 14:39:34 184

原创 datax 拼裝json-java方式

package kafkaMQ;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStreamReader;import java.sql.Conn.

2020-10-23 17:43:14 617

原创 在spring项目中随时获取bean的方式

public class SpringContextUtils { private static ConfigurableApplicationContext AC = null; public static void setAc(ConfigurableApplicationContext ac){ AC = ac; } public static <T> T getBean(String methodName, Class<T> .

2020-10-21 09:22:52 138

原创 处理下载文件出现+号

fileName = URLEncoder.encode(fileName, "UTF-8");fileName = fileName.replace("+","%20");

2020-10-16 16:54:43 823

原创 配置文件详解

springboot上传文件大小限制的配置上传文件文件过大时出现如下错误:org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field pic exceeds its maximum permitted size of 1048576 bytes.因为springboot内置tomact的的文件传输默认为1MBspring.servlet.multipart.e

2020-10-15 14:17:02 247

原创 profiles->profile

<profiles> <profile> <!--不同环境Profile的唯一id--> <id>dev</id> <properties> <!--profiles.active是自定义的字段; 在build-resource里面引用--> <profil...

2020-10-15 09:55:08 447

原创 多个网卡 注册到nacos指定网卡

spring.cloud.nacos.discovery.ip=192.168.2.103

2020-10-09 17:02:47 2742

原创 springboot全局异常类

@RestControllerAdvicepublic class GlobalExceptionHandler{ @ExceptionHandler(value = NoAuthException.class) public ResponseObj noAuthMsgError(Exception e) { }}

2020-09-23 10:30:39 176

原创 POM配置profiles 意思说明

<profiles> <!--开发环境配置,默认--> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> &lt.

2020-09-22 16:18:58 1131

原创 kafka白话文 压缩学习成本

学习kafka 花了一天时间 , 当demo写出来后 感觉就2个小时就可以入手的东西;讲点通俗易懂的东西吧环境linux下载kafka 地址:http://kafka.apache.org/downloads选择 Binary downloads:Scala 2.13 -kafka_2.13-2.6.0.tgz(asc,sha512)传到linux服务器中 放到自己存放的文件夹tar -zxvfkafka_2.13-2.6.0.tgzcd kafka_2.13-2.6....

2020-09-09 17:57:31 242

原创 学习文档

点击前往

2020-09-08 17:36:23 129

原创 关于jenkins 发布springboot项目没有后台运行

windows:@echo offstart javaw -jar tgxun.jar > log.file 2>&1exit::说明参考https://blog.csdn.net/qq_38974634/article/details/81710382上面的2 和 1 的意思如下:0 标准输入(一般是键盘)1 标准输出(一般是显示屏,是用户终端控制台)2 标准错误(错误信息输出)将运行的jar 错误日志信息输出到log.file文件中,然后(&

2020-08-25 17:54:48 361

原创 jenkins操作描述例子

前往

2020-08-20 21:51:11 177

原创 springboot 项目 配置文件打包到jar外部 -- 代码和依赖jar包分开打包

pom打包插件需要如下 <!-- 打包插件 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugi

2020-08-17 17:06:10 2086

原创 MyBatis 多数据源连接

第一步:配置文件conn1: datasource: druid: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://ip:3306/table1?useAffectedRows=true&useUnicode=true&characterEncoding=UTF-8 username: xxxxx password: xxxxx

2020-08-14 10:04:55 289

原创 mongodb相关操作文档

前往地址

2020-08-09 12:02:44 113

原创 导出-Excel- easypoi-ExcelExportUtil

List<XXXXX> lists= mapper.selectByEntity(condition); ExportParams exportParams = new ExportParams(); exportParams.setSheetName("xxxx"); exportParams.setTitle("xxx"); Workbook workbook = ExcelExportUtil.exportExcel(exp.

2020-08-06 14:37:10 6206

原创 redis 各种集群配置

redis配置

2020-08-03 10:21:00 99

原创 mysql某类型多条数据取时间最新的

SELECT * FROM A tb inner join (select bracelet_id,max(created_time) as maxTime from A GROUP BY bracelet_id) maxtimeon tb.bracelet_id = maxtime.bracelet_id and maxtime.maxTime = tb.created_time

2020-07-31 09:48:11 927

原创 pageHelper配置

@Configurationpublic class PageConfig { //@Bean public PageHelper pageHelper() { PageHelper pageHelper = new PageHelper(); Properties properties = new Properties(); properties.setProperty("offsetAsPageNum", "true"); .

2020-07-24 10:47:38 1955

mysql多数据源连接代码

用于文章中 多数据源的代码demo 一个项目连接多个数据源, 代码demo 强制满足50个字符强制满足50个字符强制满足50个字符强制满足50个字符

2020-10-30

Logback配置文件

logback配置文件demo,用于在springboot项目中放到resource 目录下即可 logback配置文件demo,用于在springboot项目中放到resource 目录下即可

2020-09-22

psc-db-structure.sql

psd-sql 的结构

2020-04-14

springcloud.zip

springcloud.zip

2019-11-01

catgo.zip

这是一些描述信息哈

2019-10-19

luopan.zip

供参考学习使用,罗盘时钟效果,前端技术参考,效果为旋转式

2019-10-16

FileAdmin.zip

个人项目没有描述,自己的备份项目,还要50字描述,我好难啊

2019-09-04

权限管理功能.7z

后台管理系统,含有自定义权限管控,无需开发者考虑用户的层级关系;

2019-07-26

空空如也

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

TA关注的人

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