杂七杂八小记录

docker

权限 --privileged

使用该参数,container内的root拥有真正的root权限。 不然,container内的root只是外部的一个普通用户权限。 privileged启动的容器,能够看到不少host上的设备,而且能够执行mount。 甚至容许你在docker容器中启动docker容器。html

数据卷权限

CMD和ENTRYPOINT 的差异

工具

nginx

静态资源映射
nginx https设置

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基础

HashMap 与 CurrentHashMap 的数据结构与区别

HashMap 与 CurrentHashMap 的数据结构与区别前端

反射解析

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

JSTL标签库源码

blog.csdn.net/javaloveiph…linux

JSP自定义标签

blog.csdn.net/white__cat/…nginx

在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 定时任务

@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…git

计划任务

<!-- 计划任务配置,用 @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"/>
复制代码

数据库

索引失效条件

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…es6

分组排序
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/…github

IDEA jrebal 热部

blog.csdn.net/xingbaozhen…spring

IDEA 注册码

idea.lanyus.com/docker

前端

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

工具类

相关文章
相关标签/搜索