MySQL创建用户与授权
摘要:参考:https://baijiahao.baidu.com/s?id=1760332747942821225&wfr=spider&for=pc
阅读全文
ES 结合nginx 实现自定义词库
摘要:docker run -p 80:80 --name nginx -d nginx:1.10 将容器内的配置文件拷贝到当前目录: docker container cp nginx:/etc/nginx . 修改文件名称:mv nginx conf 把这个 conf 移动到/mydata/nginx
阅读全文
获取elasticsearch 测试数据 accounts.json
摘要:新链接:https://github.com/elastic/elasticsearch/blob/7.5/docs/src/test/resources/accounts.json
阅读全文
Idea中为java程序添加启动参数
摘要:参考:https://blog.csdn.net/Saintmm/article/details/124603343
阅读全文
解决:org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
摘要:spring-boot-starter-parent 2.4.0版本以后去掉了ConfigurationBeanFactoryMetadata类 将 spring boot 版本到2.4 以下
阅读全文
解决:java: 找不到符号 allowedOriginPatterns
摘要:人人开源项目中pom.xml <lombok.version>1.18.20</lombok.version> 更改报错文件中语句:allowedOriginPatterns改为allowedOrigins
阅读全文
解决:idea services窗口不显示端口号
摘要:1.关闭所有java 进程 2.到此目录下 “C:\Users\用户名\AppData\Local\Temp\hsperfdata_用户名”,将 “hsperfdata_用户名”文件夹删除。 3.IDEA 重启一下,在Dashboard 中启动项目,则可以在DashBoard 中看到相应进程后面的端
阅读全文
解决:sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
摘要:参考:https://blog.csdn.net/hancoder/article/details/113821646 去https://github.com/sass/npnode-sass 或者 https://github.com/sass/node-sass/releases 都可以看到no
阅读全文
解决:npm ERR! chromedriver@2.27.2 install: `node install.js`
摘要:https://cdn.npmmirror.com/binaries/chromedriver/2.27/chromedriver_win32.zip 可以点击这个链接直接下载。 删掉项目中的 node_modules 文件夹。 根据自己的下载地址,安装依赖。 npm install chromed
阅读全文
解决 npm 错误 -errno -4048
摘要:错误原因:权限不够, 解决办法: 第一种:以管理员身份运行 vs code ,重新执行npm install;
阅读全文
安装nodejs
摘要:http://nodejs.cn/download/ 在 nodejs 安装目录下,创建 “node_global” 和 “node_cache” 两个文件夹 把【node_global】的路径“E:devTools odejs ode_global”加入到【系统变量 】下的【PATH】 变量中,方
阅读全文
Maven依赖冲突解决总结
摘要:https://blog.51cto.com/u_15535797/6075885 典型异常,主要是依赖中没有该类。导致原因有两方面:第一,的确没有引入该类;第二,由于Jar包冲突,Maven仲裁机制选择了错误的版本,导致加载的Jar包中没有该类。 抛出java.lang.NoSuchMethodE
阅读全文
docker 安装rabbitmq
摘要:docker pull rabbitmq docker run -d --hostname myrabbitmq --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq docker exec -it rabbitmq /bin/bash rabbi
阅读全文
docker 安装redis
摘要:docker pull redis:5.0.14 需要自己手动创建一个 redis.conf docker run --name redis -p 6379:6379 \ -v /usr/local/redis/conf/redis.conf:/usr/local/etc/redis/redis.c
阅读全文
docker 使用Nginx反向代理配置
摘要:docker exec -it nginx bash #进入nginx容器 容器里面需要安装Vim apt-get update #这个命令的作用是:同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。
阅读全文
docker 安装nginx
摘要:docker pull nginx:latest docker images #查看当前docker镜像 docker run --name nginx -p 8080:80 -d nginx 参数说明: --name nginx:容器名称。 -p 8080:80: 端口进行映射,将本地 8080
阅读全文
使用debug模式启动后端java项目 debug模式调试
摘要:https://blog.51cto.com/u_16099172/6933023
阅读全文
nacos安装
摘要:下载地址 https://github.com/alibaba/nacos/releases/download/2.0.3/nacos-server-2.0.3.zip 解压软件压缩包 创建nacos数据库 1、创建nacos数据库 导入nacos-mysql数据库脚本 所在位置:在nacos中的c
阅读全文
注解@NotNull
摘要:1、@NotBlank 只能用于String类型,不能为null并且trim之后的size必须大于0 2、@NotNull 不能为null,可以为空,无需考虑size的问题 3、@NotEmpty 用在集合类上面(各种集合 包括String 、数组),注意的是 不能为null 或长度为0的
阅读全文