- 博客(71)
- 资源 (4)
- 收藏
- 关注
原创 org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [4.0]. Default versio
org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string [4.0]. Default version will be used.<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2
2021-12-15 17:09:03
1115
原创 微信小程序message: “request:fail net::ERR_CERT_DATE_INVALID“
message: "request:fail net::ERR_CERT_DATE_INVALID"message: “request:fail 对应的服务器证书无效。”需要替换有效证书
2021-12-03 09:27:26
4042
原创 微信小程序 getPhoneNumber:fail no permission
errMsg: “getPhoneNumber:fail no permission”原因是:微信认证:未认证微信官方:小程序微信认证认证审核问题汇总官方
2021-11-19 11:10:23
3134
1
原创 SpringBoot引入第三方jar包的处理方式打成jar或者war
在项目开发中不可避免会遇到引入第三方jar包的情况,这些第三方jar是在Maven仓库中没有的。有两种处理方式:将jar包安装在本地maven库(本地私服)将jar包放入项目目录中。常见的打包方式又分为两种,打成jar包或者打成war包。1.打成jar包假如我们的第三方jar放置在项目根路径下,即:此时,我们在pom.xml中这么配置: <!--本地开发的ILEDCloudSDK 其中groupId,artifactId,version自定义--> <depend
2021-11-05 13:32:07
539
原创 2021-10-13
国际化(Internationalization 简称 I18n,其中“I”和“n”分别为首末字符,18 则为中间的字符数)是指软件开发时应该具备支持多种语言和地区的功能。换句话说就是,开发的软件需要能同时应对不同国家和地区的用户访问,并根据用户地区和语言习惯,提供相应的、符合用具阅读习惯的页面和数据,例如,为中国用户提供汉语界面显示,为美国用户提供提供英语界面显示。在 Spring 项目中实现国际化,通常需要以下 3 步:编写国际化资源(配置)文件;使用 ResourceBundleMessageS
2021-10-13 15:50:30
287
原创 springboot PropertySource yml
yml文件来增加新的属性配置,新增属性放在application.yml中是没问题的,但是放其他文件中,然后通过@PropertySource 引入时,却出现了问题,所有.yml中的参数配置全部读取无效,properties文件是正常的,后来在stackoverflow上看到@PropertySource中存在factory参数,通过配置factory参数可以达到我们想要的效果。@PropertySource factory属性的factory默认配置是Class<? extends Propert
2021-10-12 14:15:30
483
原创 vue设置页面标题title
每个页面设置不同标题router - index.jsconst router = new Router({ mode: 'history', routes: [ { path: '/index', name: 'index', component: Index, meta:{ // 页面标题title titl
2021-09-29 16:31:20
298
原创 Handshake failed due to invalid Upgrade header: null 解决方案
由于服务有websocket解决方案,在 Nginx ,location 中添加以下代码:proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection “upgrade”;
2021-09-29 14:49:01
569
原创 windows idea控制台中文乱码解决
在windows Intellij idea 控制台下乱码通过以下几种方式处理:1.File Encodings2.java compiler3.tomcat 设置到此,还是不能解决我的控制台中文乱码,上面涉及的应该是项目的编码,idea本身的编码也要修改一下,打开idea安装的位置找到:idea64.exe.vmoptions 增加一个配置-Dfile.encoding=UTF-8,然后重启idea,-Xms128m-Xmx750m-XX:ReservedCodeCacheSize
2021-08-20 09:49:28
698
原创 vue测试环境通过nginx处理跨越
通过nginx的proxy_pass来处理跨越问题 server { listen 8168; server_name localhost; location / { root /opt/apache-tomcat-8.5.8/hidisp.iledsysCloudView/webapps/ROOT; index index.html; try_files $ur
2021-08-20 09:35:33
150
原创 vue路由history模式刷新404问题解决方案
1.使用nginx的方法 server { listen 8168; server_name localhost; location / { root /opt/apache-tomcat-8.5.8/XXX/webapps/ROOT; index index.html; try_files $uri $uri/ @router; index
2021-08-19 15:01:08
442
原创 安装nginx报错:make: *** [build] Error 2
执行命令后:sudo ./configure --prefix=/etc/nginx --with-http_ssl_module --with-openssl=/usr/bin/openssl --with-openssl=/usr/local/openssl-1.0.1t/执行makeroot@ubuntuserver4:/usr/local/nginx-1.11.3# sudo makemake -f objs/Makefilemake[1]: Entering directory `/u
2021-08-18 15:35:50
7265
原创 安装pcre-8.01 报错make: *** [all] Error 2
root@ubuntuserver4:/usr/local/pcre-8.01# makemake all-ammake[1]: Entering directory `/usr/local/pcre-8.01'libtool: compile: g++ -DHAVE_CONFIG_H -I. -c pcrecpp.cc -o .libs/pcrecpp.o./libtool: line 990: g++: command not foundmake[1]: *** [pcrecpp.lo]
2021-08-18 15:00:29
854
原创 configure: error: no acceptable C compiler found in $PATH 问题解决
报错:configure: error: no acceptable C compiler found in $PATHroot@ubuntuserver4:/usr/local/pcre-8.01# sudo ./configurechecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe
2021-08-18 14:10:49
18217
2
原创 使用apt-get instal 安装报错
server2@ubuntuserver4:~$ sudo apt-get install geditReading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: gedi.
2021-08-18 13:55:13
708
原创 Ubuntu 查看Ubuntu系统版本信息
1.输入命令 cat /proc/version2.命令 uname -a3.命令: lsb_release -a
2021-08-13 14:21:28
173
原创 微信开发工具小程序获取手机号失败
由于微信上更换手机号导致微信开发工具上获取手机号失败,需要通过手机客户端访问一下,会发送一个短信验证码到手机上,输入验证码后,验证成功就可以了
2021-07-30 15:53:07
7410
3
原创 idea debugger port 127.0.01:65471,window关闭端口
idea 启动报错:查询端口 : netstat -ano | findstr “xx” ,xx:代表端口任务管理器里查询pid结束这个进程就可以了或者tasklist|findstr "336",回车,查看是哪个进程或者程序占用了336端口,结果是:java.exe结束该进程:在任务管理器中选中该进程点击”结束进程“按钮,或者是在cmd的命令窗口中输入:taskkill /f /t /im java.exe...
2021-07-12 13:42:00
325
原创 Redirected when going from “/index“ to “/xx“via a navigation guard
错误:vue-router.esm.js?fe87:2008 Uncaught (in promise) Error: Redirected when going from "/index" to "/userhome" via a navigation guard. at createRouterError (vue-router.esm.js?fe87:2008) at createNavigationRedirectedError (vue-router.esm.js?fe87:19
2021-07-09 21:57:56
1854
原创 springboot指定端口的三种方式
springboot指定端口的三种方式第一配置文件中添加server.port=9090第二在命令行中指定启动端口,比如传入参数一server. port=9000 java -jar bootsample. jar – server.port=9000第三传入虚拟机系统属性java - Dserver.port=9000 -jar bootsample.jar...
2021-07-09 21:07:10
1570
原创 idea焕然一新,背景图
1:打开idea设置2.选择Appearance里的Backgound Image3.选择图片,调节透明度,展示方式4.效果
2021-07-08 09:44:46
217
原创 springboot jar 开启关闭
linux下:1.开启nohup java -jar (jar包名)2.后台停止先找到进程ps aux|grep (jar包名)kill -9 进程号(红色标记)window下输出 java -jar zip然后按tab键自动补全就可以了停止java项目cmd 输入 jps 可以看到 jar的PID或者关掉开启的 cmd...
2021-07-06 15:00:46
583
原创 Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-reso
问题:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project demo: Input length = 1 -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swi
2021-07-06 14:33:04
365
1
原创 latest: Pulling from library/redis no matching manifest for windows/amd64 10.0.18363 in the manifest
docker pull redis:latest 提示如下结果latest: Pulling from library/redisno matching manifest for windows/amd64 10.0.18363 in the manifest list entries在设置里找到这个restart后 docker pull redis:latest运行容器安装完成后,我们可以使用以下命令来运行 redis 容器: docker run -itd --name red
2021-07-01 20:50:30
1474
原创 windows Docker容器中使用Redis
1.启动redis后,点击cli2. 进入客户端 # redis-cli查询所有的keys获取key的值 get类型 type
2021-06-30 21:55:05
229
原创 tomcat 403 Access Denied
1.添加账户密码<role rolename="manager"/><user name="admin" password="123456" roles="manager"/>2.403 Access Denied 访问的ip地受到了限制需要找到D:\apache-tomcat-8.5.57\webapps\manager\META-INF 目录:webapps\manager\META-INF\context.xml,,而不是 /conf/ 目录下的 context.
2021-06-17 11:36:49
387
原创 springboot项目 LoggerFactory is not a Logback LoggerContext but Logback ison the classpath.
原因:log4j日志组件和自带logback日志组件冲突。解决方法:将默认日志组件排除。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <!-- 去除logback的依赖 --> <exclusions> <exc
2021-06-16 10:42:52
175
原创 Intellij idea 生成serialVersionUID
1.设置,有的需要重启2.生成serialVersionUID放在类名上或者Alt+Enter键或者
2021-05-17 09:58:28
129
原创 微信小程序IOS的date的坑
在安卓手机上new Date(“2021-3-28 00:00:00”).getTime(); 是ok,在ios不行需要处理一下:new Date(“2021-3-28 00:00:00”.replace(/-/g, “/”)).getTime();try {var wxRes = wx.getSystemInfoSync();if( (wxRes.platform != “devtools”)&& (wxRes.platform == “ios” || wxRes.system.
2021-04-27 16:29:26
203
原创 微信小程序允许上传的文件后缀
允许上传的文件在项目目录中,以下文件会经过编译,因此上传之后无法直接访问到:.js、app.json、.wxml、*.wxss(其中 wxml 和 wxss 文件仅针对在 app.json 中配置了的页面)。除此之外,只有后缀名在白名单内的文件可以被上传,不在白名单列表内文件在开发工具能被访问到,但无法被上传。具体白名单列表如下:wxspngjpgjpeggifsvgjsoncermp3aacm4amp4wavoggsilkwasmbr参考:https://develo
2021-04-27 14:30:20
1607
原创 webpack-dev-server‘ 不是内部或外部命令
npm run devfortune@1.0.0 dev D:\work\uni\fs\fengshui_vuewebpack-dev-server --inline --progress --config build/webpack.dev.conf.js‘webpack-dev-server’ 不是内部或外部命令,也不是可运行的程序或批处理文件。npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! fortune@1.0.0 dev: web
2021-04-27 14:20:42
6147
原创 error during connect: In the default
PS C:\WINDOWS\system32> docker run hello-worlddocker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/
2021-04-22 23:01:26
726
原创 idea创建vue+element-ui
1.安装vue插件2.创建vue项目,选择Javascript 选择Vue.js项目名称和项目路径添加 element-ui在 main.js 中添加import ElementUI from ‘element-ui’;import ‘element-ui/lib/theme-chalk/index.css’;Vue.use(ElementUI)运行项目运行起来:App running at:Local: http://localhost:8080/Network:
2021-03-11 11:42:12
1475
原创 小程序canvas 2d 自定义字体
开发工具:微信开发者工具 Stable 1.05.21020210注意:目前canvas 2d 开发工具看不到效果,需要真机预览才可以看到效果效果图:下面是动态加载网络字体的api:写的是一个全局加载的// app.jsApp({ onLaunch() { //加载全局字体 for(let i =0;i<this.globalData.array.length;i++){ console.log(i) let obj = this
2021-03-11 11:08:23
3555
原创 小程序更新
onLaunch () { if (wx.canIUse('getUpdateManager')) { const updateManager = wx.getUpdateManager() updateManager.onCheckForUpdate(function (res) { if (res.hasUpdate) { updateManager.onUpdateReady(function () { w..
2021-03-09 16:53:37
93
原创 idea 创建mybatis xml 模板
1.新建模板mapper 模板<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace=""></mapper>2.利用新建的模板创建xml
2021-01-19 11:49:14
158
原创 IDEA插件MyBatis从dao层方法跳转到对应的xml
idea 利用插件 实现从dao层方法进入xml文件中查看方法以及从xml跳转到dao层的方法1.打开setting2.点击插件,选择Free Mybatis plugin插件 ,然后点击install,3.重新启动ide4.dao层方法,重启后,一会就会出现箭头图标,点击箭头图标就会跳转到对应的xml的方法,反之从xml里的箭头图标跳转到dao层的方法...
2021-01-19 11:34:57
10026
3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人