随笔分类 -  java

摘要:Springboot security 的使用,三步: 1、pom中增加: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> < 阅读全文
posted @ 2022-01-17 16:05 hoge 阅读(1299) 评论(0) 推荐(0)
摘要:网上都说是jar包冲突,就打算通过idea的dependents 打开那个密集的maven依赖图,寻找蛛丝马迹。 结果,直接劝退了,太复杂; 17:22:00.943 [main] ERROR org.springframework.boot.SpringApplication - Applicat 阅读全文
posted @ 2022-01-07 17:48 hoge 阅读(3358) 评论(0) 推荐(0)
摘要:# A fatal error has been detected by the Java Runtime Environment: # # [error occurred during error reporting (printing exception/signal name), id 0x7 阅读全文
posted @ 2021-03-28 16:50 hoge 阅读(7244) 评论(0) 推荐(0)
摘要:1、pom 这样写: <build> <finalName>${finalName}</finalName> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-pl 阅读全文
posted @ 2020-06-15 22:30 hoge 阅读(226) 评论(0) 推荐(0)
摘要:1、No PostCSS Config found in: 根目录下放置图中文件: 2、Module not found: Error: Can't resolve 'sass-loader' npm install sass-loader -D npm install node-sass -D 3 阅读全文
posted @ 2020-05-30 09:16 hoge 阅读(281) 评论(0) 推荐(0)
摘要:systemctl stop firewalld.service //关闭系统防火墙Nginx启动: ps -ef|grep nginx kill -9 70143 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf Red 阅读全文
posted @ 2020-05-06 09:16 hoge
摘要:Failed to convert WOFF 2.0 font to SFNT 不加,能出来图标,加了出不来 加上出不来 https://www.cnblogs.com/tomcatandjerry/p/5799188.html 都注释了,也能出来图标,看来没什么用啊! build resoures 阅读全文
posted @ 2020-04-29 16:51 hoge 阅读(1019) 评论(0) 推荐(0)
摘要:线程数量;server.xml <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCoun 阅读全文
posted @ 2020-03-30 21:16 hoge 阅读(1080) 评论(0) 推荐(0)
摘要:1、项目配置: 2、 3、 clean package --settings /usr/local/maven/conf/settings.xml -Dmaven.test.skip=true 4、 echo "transfer success" && sh /usr/local/sshdata/d 阅读全文
posted @ 2020-03-11 12:22 hoge 阅读(209) 评论(0) 推荐(0)
摘要:basecontroller 中的方法: /** * 初始化数据绑定 * 1. 将所有传递进来的String进行HTML编码,防止XSS攻击 * 2. 将字段中Date类型转换为String类型 */ @InitBinder protected void initBinder(WebDataBind 阅读全文
posted @ 2020-02-01 19:21 hoge 阅读(4119) 评论(0) 推荐(0)
摘要:/** * 获取当前用户 * * @return 取不到返回 new User() */public static LoginUser getLoginUser() { try { Object principal = SecurityContextHolder.getContext().getAu 阅读全文
posted @ 2020-01-30 19:58 hoge 阅读(4375) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/stulzq/p/9291237.html https://www.haowenbo.com/articles/2019/07/24/1563964257491.html 1、在安装jenkins的时候一直失败。报错内容是 stat: canno 阅读全文
posted @ 2020-01-21 16:40 hoge 阅读(1802) 评论(0) 推荐(1)
摘要:没道理,真好笑。 yml 配置文件的问题,搞了N久: spring节点和mybaits节点在同一竖线中,mybaits缩进了,立马阳痿。 弄齐,又支棱起来了! 阅读全文
posted @ 2019-12-16 12:18 hoge 阅读(175) 评论(0) 推荐(0)
摘要:安装:1.获取redis资源 wget http://download.redis.io/releases/redis-4.0.8.tar.gz 2.解压 tar xzvf redis-4.0.8.tar.gz 3.安装 (1)cd redis-4.0.8 (2)make (3)cd src (4) 阅读全文
posted @ 2019-12-10 15:43 hoge 阅读(488) 评论(0) 推荐(0)
摘要:1、单单引入一个教程上的,不行;按照下面的pom进行修改 <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-javanica</artifactId> <version>RELEASE</version> 阅读全文
posted @ 2019-12-05 15:59 hoge 阅读(255) 评论(0) 推荐(0)
摘要:Create a maven simple web project in idea. Create a module in the simple maven project. The moudle name is eureka,it's a discovery and register servic 阅读全文
posted @ 2019-12-05 07:34 hoge 阅读(200) 评论(0) 推荐(0)
摘要:1、从http升级了https 之后出现的问题; 原因:原来的方法,得到的url还是http的,导致微信签名错误:63002,改成下面的代码,签名一致,就可以了 protected String currentUrl() { HttpServletRequest request = ((Servle 阅读全文
posted @ 2019-11-18 10:43 hoge 阅读(2030) 评论(0) 推荐(0)
摘要:ailed: Error during WebSocket handshake: Unexpected response code: 404 ssl_certificate /usr/local/nginx/cert/2075610_beihaoyuewen.com.pem; ssl_certifi 阅读全文
posted @ 2019-11-09 22:58 hoge 阅读(1185) 评论(0) 推荐(0)
摘要:1、两个tomcat互相影响: 改掉其中一个跟前一个一样的端口号;,重启不再影响; 2、微信公众号提示redirect-url 域名不一致,修改 nginx.conf 中的upstream名称为公众号后台填写的域名,即可解决; 3、存放路径:、usr/local/nginx 这个是nginx的程序路 阅读全文
posted @ 2019-11-09 16:12 hoge 阅读(332) 评论(0) 推荐(0)
摘要:就这么乱,怎么回事? vue.js 导致的。将vue.js 对应的div id=app 的那个缩小返回,不要让他包住 content 内容,即可! 阅读全文
posted @ 2019-10-06 18:04 hoge 阅读(394) 评论(0) 推荐(0)