TODO.
TODO LIST
- spring cloud config git
- spring cache
- integrate spring boot admin
- spring security
JPA annotation
@Where
:统一添加条件,主要用于逻辑删除的Table,查询相关@SQLDelete
: 用于删除实体/集合的自定义SQL语句。
SpringMVC
@PutMapping
:
OAuth2Server
AbstractAuthenticationProcessingFilter->ClientCredentialsTokenEndpointFilter(check client_id) 根据请求参数生成Authentication对象(可能为空,或者Anonymous) |
final Set
for (final ITemplateResolver templateResolver : templateResolvers) {
templateResolution = templateResolver.resolveTemplate(templateProcessingParameters);
if (templateResolution != null) {
}
}
final String characterEncoding = templateResolution.getCharacterEncoding();
Reader reader = null;
if (!StringUtils.isEmptyOrWhitespace(characterEncoding)) {
try {
reader = new InputStreamReader(templateInputStream, characterEncoding);
} catch (final UnsupportedEncodingException e) {
throw new TemplateInputException(“Exception parsing document”, e);
}
} else {
//default is GBK
reader = new InputStreamReader(templateInputStream);
}
|
Options:
-d, –detach Detached mode: run command in the background
–detach-keys string Override the key sequence for detaching a
container
-e, –env list Set environment variables
-i, –interactive Keep STDIN open even if not attached
–privileged Give extended privileges to the command
-t, –tty Allocate a pseudo-TTY
-u, –user string Username or UID (format:
<name|uid>[:<group|gid>])
-w, –workdir string Working directory inside the container
```
eg: docker exec -it 12e /bin/sh
执行上述命令后会会自动连接到目标容易的终端
删除容器
`docker rm -f
创建服务
docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]
DockerFile
COPY SRC DEST
复制src文件到dest
ADD SRC DEST
复制src文件到dest,如果src为压缩文件,怎复制和自动解压
CMD cmd args…
在docker run
时运行
RUN cmd args…
在docker build
时运行,可能
HEX(NUM) -> DECIMAL
int r= (int)(NUM / 10)*16 + NUM%10