杂七杂八小记录

522 阅读4分钟

minikube

docker

权限 --privileged

使用该参数,container内的root拥有真正的root权限。 否则,container内的root只是外部的一个普通用户权限。 privileged启动的容器,可以看到很多host上的设备,并且可以执行mount。 甚至允许你在docker容器中启动docker容器。

数据卷权限

CMD和ENTRYPOINT 的差别

工具

nginx https设置
nginx 常见配置

maven

    <repositories>
        <repository>
            <id>public</id>
            <name>aliyun nexus</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
        <repository>
            <id>bintray-qcloud-maven-repo</id>
            <name>qcloud-maven-repo</name>
            <url>https://dl.bintray.com/qcloud/maven-repo/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

跨域

java基础

JVM 指令码说明

blog.csdn.net/niunai112/a…

HashMap 与 CurrentHashMap 的数据结构与区别

HashMap 与 CurrentHashMap 的数据结构与区别

反射解析

blog.csdn.net/startupmoun… blog.csdn.net/coslay/arti…

JSTL标签库源码

blog.csdn.net/javaloveiph…

JSP自定义标签

blog.csdn.net/white__cat/…

在jsp文件中,可以引用tag和tld文件。 
1.对于tag文件 
<%@ taglib prefix="ui" tagdir="/WEB-INF/tags" %> 
其中的tags是个目录,里面有若干tag文件。 
但使用<ti:XXXX>时,目录WEB-INF/tags下,必然有个XXXX.tag文件与之对应。
2.对于tld文件 
在jsp中可以引用TLD文件,如 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> 
但是这个http://struts.apache.org/tags-html对应着什么呢? 
jsp会在当前目录的\WEB-INF下找所有tld文件,确认这个URL对应哪个TLD文件。 
当找到struts-html.tld文件时,发现其中的内与这个URL对应。 
但使用<html:YYYYY>时,这个TLD文件中必然有个YYYY项与之对应。 

<%@ taglib prefix="pay" tagdir="/WEB-INF/tags/pay" %>

<%@ taglib prefix="echarts" uri="/WEB-INF/tlds/echarts.tld" %>

spring

springboot 统一处理返回值/响应体

springboot 拦截器配置

 openRouting = ((HandlerMethod) handler).getMethodAnnotation(OpenRouting.class);

spring boot 打war包

swagger 使用说明

spring boot 集成 shiro

@ConfigurationProperties

eureka获取所有服务

spring boot 自动加载配置文件原理

spring aop 注解切面实例

@RequestParam,@PathParam,@PathVariable,@QueryParam 注解的使用区别

springboot 容器初始化调用事件

ApplicationContextAware 获取spring上下文

spring 内置监听

spring boot 定时任务

spring boot 集成 ActiveMQ

spring service调用自身方法事务失效

spring @DependsOn 依赖顺序问题

spring boot 创建自定义Starter

@ConditionalOnBean()//容器中存在某个bean

@ConditionalOnMissingBean() //容器中不存在某个bean

   @Bean
   @ConditionalOnMissingBean(ConfigurationTest.class)//不存在bean执行以下方法创建一个bean
   public ConfigurationTest configurationTest(){
       ConfigurationTest configurationTest =new ConfigurationTest();
       configurationTest.setAa("我是@Configguration的值");
       return configurationTest;
   }

MultipartFile多文件上传

blog.csdn.net/swingpyzf/a…

计划任务

<!-- 计划任务配置,用 @Service @Lazy(false)标注类,用@Scheduled(cron = "0 0 2 * * ?")标注方法 -->
   <task:executor id="executor" pool-size="10"/> <task:scheduler id="scheduler" pool-size="10"/>
   <task:annotation-driven scheduler="scheduler" executor="executor" proxy-target-class="true"/>

springboot 监听redis key失效

数据库

回表,索引下推,最左匹配,联合索引

索引失效条件

oracle

导出dmp
exp hc_video/hc_video@ORCL file=E:\hc_video.dmp owner=(hc_video)
导入dmp
imp hc_video/hc_video@ORCL file=E:\data\hc_video.dmp full=y ignore=y;
创建表空间
create tablespace k_hc_property
logging
datafile 'E:\oracle\product\10.2.0\oradata\orcl\k_hc_property.dbf' 
size 100m 
autoextend on 
next 32m maxsize 2048m
extent management local;
用户授权
create user NDJGDJ identified by ndjgdj_2017;
grant dba to NDJGDJ;
grant all privileges to NDJGDJ;
oracle树结构查询

blog.csdn.net/wupd2014/ar…

分组排序
rank,dense_rank,row_number,以及分组排名partition
rank:排名会出现并列第n名,它之后的会跳过空出的名次,例如:1,2,2,4
dense_rank:排名会出现并列第n名,它之后的名次为n+1,例如:1,2,2,3
row_number:排名采用唯一序号连续值,例如1,2,3,4
partition:将排名限制到某一分组
 
格式:
row_number() over(partition by bb.channel_name order by sum(aa.dk_serv_num) desc nulls last) p1_rank1,
row_number() over(order by sum(aa.dk_serv_num) desc nulls last) rank1,
dense_rank() over(order by nvl(sum(aa.dk_serv_num), 0) desc) rank2,
rank() over(order by sum(aa.dk_serv_num) desc nulls last) rank3

IntelliJ IDEA

IDEA部署非maven项目

blog.csdn.net/u012682683/…

IDEA jrebal 热部

blog.csdn.net/xingbaozhen…

前端

es6基础

es6.ruanyifeng.com/?search=%24…

图表组件

文件blob转为file对象

var xhr = new XMLHttpRequest();
    xhr.open('get', "url", true);    //也可以使用POST方式,根据接口
    xhr.responseType = "blob";   //返回类型blob
    xhr.onload = function () {
    	//定义请求完成的处理函数
    	if (this.status === 200) {
    		var blob = this.response;
    		if (blob.size > 0) {
    			var file = new window.File([blob], "test.ppt");
    			teduBoard.addFile({data: file})
    		}
    	}
    };
    xhr.send();
    var xhr = new XMLHttpRequest();
	xhr.open('get', "url", true);    //也可以使用POST方式,根据接口
	xhr.responseType = "blob";   //返回类型blob
	xhr.onload = function () {
		//定义请求完成的处理函数
		if (this.status === 200) {
			var blob = this.response;
			if(blob.size>0){
				var reader = new FileReader();
				reader.readAsDataURL(blob);   // 转换为base64,可以直接放入a标签href
				reader.onload = function (e) {

					// 转换完成,创建一个a标签用于下载
					var a = document.createElement('a');
					a.download = '兑换码.txt';
					a.href = e.target.result;
					$("body").append(a);    // 修复firefox中无法触发click
					a.click();
					$(a).remove();
					window.location.reload();
				}
			}else{
				window.location.reload();
			}
		}
	};
	xhr.send();

检索引擎

elasticsearch

www.ruanyifeng.com/blog/2017/0…

优质博客

spring-boot 源码解析

linux大全

工具包

  • zip4j
  • dom4j
  • commons-lang
  • commons-lang3
  • fastjson
  • commons-io
  • PageHelper

工具类