jenkins+WebHook+Coding自动化部署项目
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014793522/article/details/79895385 没时间整理 就简单写了下,有问题可以一起探讨~ 项目代码放在coding上进行托管,每次部署项目都特别麻烦,本地maven打成jar包上传到服务器,然后服务器在启动。 每次发布一个版本 都要做这些繁琐的事情,现在使用jenkins集成配合命令 自动部署项目,so easy! 为了方便,把jenkins放在服务器上了。 1.下载
shiro源码分析之自定义注解RequiredPermission(可代替RequiresPermissions)
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/83589863 1.现象 shiro使用RequiresPermissions等注解必须添加如下切面,否则不生效
@Bean
public AuthorizationAttributeSourceAdvisor authorizationAttributeSourceAdvisor(SecurityManager securityManage
Linux安装elasticsearch6.4
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/83826651 0.注意 我是基于Centos7安装的,如果你是Centos6,需要额外的2项配置,如下
vim /etc/security/limits.d/90-nproc.conf
soft nproc 4096
vim config/elasticsearch.yml
bootstrap.memory_lock: false
b
elasticsearch6.x安装head插件
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/83859927 1.安装依赖nodejs wget --no-check-certificate https://nodejs.org/dist/v9.9.0/node-v9.9.0-linux-x64.tar.xz
tar -xf node-v9.9.0-linux-x64.tar.xz
mv node-v9.9.0-linux-x64
es配置中文和拼音分词器
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/83868620 1.简介 es默认使用standard分词器 es还有其他分词器比如simple writespace language
2.配置中文分词器(需先安装git maven unzip) git clone https://github.com/medcl/elasticsearch-analysis-ik.git
cd el
DependsOn注解
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84573211 1.简介 指定Spring容器初始化当前Bean之前 先初始化所依赖的Bean
2.使用(如下DependsOn001依赖DependsOn002) @Component
@DependsOn(value = {"dependsOn002"})
public class DependsOn001 {
public
跨域产生原因及处理方式
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84573422 1.跨域产生原因 当前站点页面访问当前站点之外的资源
2.产生跨域例子(直接浏览器打开 访问localhost:8080的资源) <!DOCTYPE html>
<html>
<head>
<title>跨域</title>
<script src="jquery-1.11.1.min.js" type="text/java
elasticsearch基本操作一
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84666712 1.索引操作 # 创建名为data索引 0备份 3分片
PUT data
{
"settings": {
"index": {
"number_of_replicas": 0,
"number_of_shards": 3
}
}
}
# 查询data索引配置
GET data/
elasticsearch基本操作二
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84763304 1.数据准备 PUT data
{
"settings":{
"number_of_replicas":0,
"number_of_shards":3
},
"mappings":{
"user": {
"properties": {
"name":{"type
elasticsearch基本操作三
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84777333 0.数据准备 # text指定中文分词器(ik_max_word)
PUT data
{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 3
},
"mappings": {
"user": {
"proper
springboot2整合elasticsearch6.x(TransportClient方式)
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84860680 1.maven依赖 <elasticSearch.version>6.4.3</elasticSearch.version>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
springboot2整合elasticsearch6.x(spring-boot-starter-data-elasticsearch)
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013219624/article/details/84861746 1.maven依赖 <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
2.application.pr
Await 和 Async 用法和详细解释
在学习Await 和 Async之前,最好已经学习过了 JS的 promise 和 promise.all。如果对promise还不了解的可以先看我的另外一篇:Promise、Promise.all 和Promise.race用法 在说Await 和 Async之前,我们以一张图先复习和深入了解一下promise 可以发现promise其实也是异步的方法,在执行promise方法的时候,下面的console也一起同步执行了。其实这也是一个好处,因为不建议写那么多阻塞方法。 可是如果我们的确要用
Host xxxxx is not allowed to connect to this MySql server :mysql 拒绝远程主机连接
Host xxxxx is not allowed to connect to this MySql server mysql拒绝远程连接 解决方法: 打开终端,进入mysql 1、先选中mysql中的 ·mysql· 表
use mysql;
2、更新权限,修改为允许全部连接
update user set host = '%' where user = 'root';
3、查看是否修改成功
select host, user from user;
4、刷新表的权限(或者重启一次
vscode使用Debugger for Chrome配置
使用VSCODE开发html的时候,难免少了调试。可是按下F5会自动打开chrom。并且打开 localhost:8080,如图: 这时候只需要改一下配置文件 {
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "htt
java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' 数据库存储表情报错
现在很多人都喜欢用 emoji表情作为名称 在开发小程序存储用户登录信息的时候,存储用户名称一直报错: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' 这是因为之前数据的utf8只能存储3个字节,而 emoji表情有些需要占4个直接,所以数据库存储不了,报错了。 解决方案: 1、要想解决emoji表情表情的问题,需要使用utf8mb4编码。而这种编码格式需要在mysq5.5以上版本才有。 2、和绝大多数教程一样
VSCode 配置并使用less
在VsCode中使用Less方法: 安装node.js (这是基本操作了。LESS需要有node.js支持,安装node.js略过) 在VSCode中。搜索插件 Easy LESS。安装,安装完后最好重启一次VSCode 普通的使用需求都可以满足了。在需要生成css文件的地方,新建一个.less文件。如图: 在里面写你需要的样式,保存后,会自动在同级目录下,生成同样名称的css文件 至此,普通版的Less配置就完成了 进阶版:在截图中,我通常用于小程序开发,如果只是生成.css文件不能满足日常
git使用和常见命令
1、刚下载安装完git后,初次配置: // 先设置邮箱和用户名,用于提交的时候验证的
git config --global user.name "xxx"
git config --global user.email "xxx"
2、准备一个要clone的项目(码云、github、gitlab都可以),比如链接地址为: https://gitee.com/ xxxxxx.git (这个只是示范,不是真实有效的地址) 3、找一个空目录,用于存放代码文件的,在目录中右键,选择git bash
今日推荐
周排行