摘要: 引用-https://www.cnblogs.com/duanxz/p/4159963.html 问题分析:1,程序属于CPU密集型,和开发沟通过,排除此类情况。2,程序代码有问题,出现死循环,可能性极大。问题解决:1,开发那边无法排查代码某个模块有问题,从日志上也无法分析得出。2,记得原来通过st 阅读全文
posted @ 2021-08-24 10:40 洋洋哥 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、Semaphore介绍 Semaphore 通常我们叫它信号量, 可以用来控制同时访问特定资源的线程数量,通过协调各个线程,以保证合理的使用资源。 2、Semaphore常用方法 acquire() 获取一个令牌,在获取到令牌、或者被其他线程调用中断之前线程一直处于阻塞状态。 ​ acquire 阅读全文
posted @ 2020-09-07 17:31 洋洋哥 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 在启动项配置,屏蔽Security认证 import org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration; import org.springfr 阅读全文
posted @ 2020-08-10 17:44 洋洋哥 阅读(2140) 评论(0) 推荐(0) 编辑
摘要: postgresql是数据库类型为postgres 在yml中配置activiti参数 spring: activiti: database-type: postgres # 数据库类型 database-schema-update: true # 建表规则 为true会自动创建表 db-histo 阅读全文
posted @ 2020-08-10 17:41 洋洋哥 阅读(2320) 评论(0) 推荐(0) 编辑
摘要: 我的用户密码前台输入后,需要和用户名关联进行加密比较,所以重写了AuthenticationProvider的实现类进行处理; @Component public class MyAuthenticationProvider implements AuthenticationProvider { @ 阅读全文
posted @ 2020-04-11 16:00 洋洋哥 阅读(6796) 评论(0) 推荐(0) 编辑
摘要: <!--登录错误提示信息--><div class="error_tip" th:if="${param.error}"> <span th:text="${session?.SPRING_SECURITY_LAST_EXCEPTION?.message}" class="help-block" s 阅读全文
posted @ 2020-04-11 15:53 洋洋哥 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: 在确定xml的namespace 、resultType都无误后,可以查看生成的target文件夹下mapper下是否有xml文件夹,没有在pom文件中添加 <resources> <resource> <directory>src/main/resources</directory> <filte 阅读全文
posted @ 2020-04-09 18:10 洋洋哥 阅读(4320) 评论(0) 推荐(0) 编辑
摘要: 1、后台模板图片的路径——我demo的文件存放在resource下的static/word/下 图片路径:image.setUrl("static/word/testCode.png"); 模板文件路径:new ClassPathResource("static/word/Image.docx"). 阅读全文
posted @ 2020-03-12 14:31 洋洋哥 阅读(3251) 评论(0) 推荐(0) 编辑
摘要: 一、mysql服务的启动和停止 net start mysql net stop mysql 二、登陆mysql 语法如下: mysql -u用户名 -p用户密码 注意,如果是连接到另外的机器上,则需要加入一个参数-h机器IP 三、增加新用户 格式:grant 权限 on 数据库.* to 用户名@ 阅读全文
posted @ 2020-03-04 10:59 洋洋哥 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 一: 压缩包安装 1、去官网下载,解压缩。 2、配置环境变量 MYSQL_HOEM: D:\ruanjian\mysql-5.7.28-winx64 解压路径 path: 在末尾加上 ;%MYSQL_HOME%\bin; 3、创建my.ini文件 可以复制my.ini文件, 也自己创建my.ini文 阅读全文
posted @ 2020-03-04 10:54 洋洋哥 阅读(165) 评论(0) 推荐(0) 编辑