摘要:
photo-sphere-viewer 图片跨域问题 The panorama can't be loaded 使用photo-sphere-viewer 展示不是当前域的图片 会出现跨域问题。。。 this.viewer = new Viewer({ container: document.que 阅读全文
摘要:
freemarker后台返回一个long类型的ID,前台html取值时会被,分割 @RequestMapping("/live-anchor") public String liveAnchor(Model model) { model.addAttribute("sdkappid", sdkapp 阅读全文
摘要:
Java过滤文件名中的特殊符号 public static void main(String[] args) throws UnsupportedEncodingException { String name= "test%dasda da&sda s / \\ \" : | * ? < >.mp4 阅读全文
摘要:
使用emoji-java过滤微信表情符号 <!--处理表情--> <dependency> <groupId>com.vdurmont</groupId> <artifactId>emoji-java</artifactId> <version>4.0.0</version> </dependenc 阅读全文
摘要:
VsCode开启自动格式化 安装插件 设置settings.json { "editor.codeActionsOnSave": { "source.fixAll.eslint": true } } 阅读全文
摘要:
Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency. 产生问题原因: 阅读全文
摘要:
Spring Boot 警告:An illegal reflective access operation has occurred Spring Boot项目升级到JDK 11,运行时发现警告如下: WARNING: An illegal reflective access operation h 阅读全文
摘要:
IDEA社区版2020相关内容——持续更新 插件: 创建Springboot项目插件——Spring Assistant 自动生成get/set——Lombok插件 自动化部署插件——Alibaba Cloud Toolkit Mybatis自动定位XML文件——Free MyBatis plugi 阅读全文
摘要:
Spring Boot启动第一次访问慢Creation of SecureRandom Instance is Slow in Spring Boot Linux服务器上启动了一个Spring Boot项目后,第一次请求用了很长的时间,查看日志后发现一个关键内容:Creation of Secure 阅读全文
摘要:
快速接入微信小程序的订阅消息 官方文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/subscribe-message.html 2020年11月17日15:59:14 以下内容如有变更,请以官方文档 阅读全文
摘要:
浏览器如何不装插件打开Axure导出的html文件 Axure导出的html文件打开是需要装插件的,一般使用chrome的用户居多 谷歌商店默认国内是访问不了的。 ############# Axure8 ############# 如何解决?使用记事本或者其他代码编辑器打开index.html,找 阅读全文
摘要:
js页面关闭提示确定离开此页面吗? //绑定beforeunload事件 需要页面有操作 $(window).bind('beforeunload', function () { return '您输入的内容尚未保存,确定离开此页面吗?'; }); //解除绑定,一般放在提交触发事件中 //$(wi 阅读全文
摘要:
FullCalendar日历插件常用属性文档 参考文献: 官方文档:http://arshaw.com/fullcalendar/docs/ FullCalendar 官方文档翻:http://www.cnblogs.com/mycoding/archive/2011/05/20/2052152.h 阅读全文
摘要:
SpringBoot JPA返回json格式数据时间格式设置 方式一 注解形式 @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; 方式二 配置文件 spring.jack 阅读全文
摘要:
Linux Shell脚本启动jar、关闭jar 启动脚本 #!/bin/sh cd /usr/local/javaWeb # 将app.jar 修改为自己的jar包名 nohup java -jar app.jar & exit 0 关闭脚本 #!/bin/sh # 将app.jar修改为自己的j 阅读全文
摘要:
SpringBoot基于切面来拦截@PathVariable参数及抛出异常全局处理方法 微信小程序的接口验证防止非法请求,登录的时候获取openId生成一个七天有效期token存入redis中。 后续每次请求都需要把token作为参数传给后台接口进行验证,为了方便使用@PathVariable 直接 阅读全文
摘要:
SpringBoot引用font awesome不显示问题的解决 资源打包问题,加上排除就好了 <build> <plugins> <!--增加配置解决icon不显示--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactI 阅读全文
摘要:
解决RestTemplate请求url出现301转发错误 301 Moved Permanently 使用restTemplate.getForObject方法访问url 提示301错误 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html 阅读全文
摘要:
npm报错:Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime 异常信息 Module build failed: Error: Missing bindin 阅读全文
摘要:
npm 安装 chromedriver 失败的解决办法 报错信息: > chromedriver@2.27.2 install /Users/Mario/Work/Lab/waylens-all-in-one-site/node_modules/chromedriver > node install 阅读全文
摘要:
npm run dev报错 JS stacktrace(Node内存溢出) 解决方案: npm install -g increase-memory-limit increase-memory-limit 4096mb #改成适合本机的内存 阅读全文
摘要:
Mysql批量修改表字段名称为小写 有时候表字段windows下不区分大小写,Linux区分 。为了避免不必要的麻烦我们统一改为小写。。 导出sql 例如: -- -- Table structure for t_user_role -- DROP TABLE IF EXISTS `t_user_r 阅读全文
摘要:
Ubuntu18 apt更换国内源 加快下载速度 操作步骤 1、备份源列表 Ubuntu配置的默认源并不是国内的服务器,下载更新软件都比较慢。首先备份源列表文件sources.list sudo cp /etc/apt/sources.list /etc/apt/sources.list_backu 阅读全文
摘要:
微信小程序如何实现支付宝支付? 大家都知道,微信小程序和微信公众号都是无法直接进行支付宝支付的,对于微信公众号,一般提示用户打开浏览器或复制url网址,然后通过手机浏览器实现支付宝支付。 微信小程序无法跳转到网址,那如何实现支付宝支付呢? 经过研究,发现了一个比较可行的方法 1.通过服务器端生成一个 阅读全文
摘要:
Java校验文件是否损坏 经常在程序操作文件时,遇到文件以及损坏的问题,那么如何校验文件是否损坏呢?这就需要Apache Tika包了,maven引用如下: <!-- https://mvnrepository.com/artifact/org.apache.tika/tika-parsers -- 阅读全文