-
Nginx 502 Bad Gateway
现象 请求页面得到502 Bad Gateway。 日志 查看error.log日志,发现有upstream sent too big header while
2023-03-13, Views: 1621 , Topics: Nginx
-
SSH 客户端工具
WindTerm 功能:SHH、SCP、SFTP、Telnet、Shell、CMD。 https://github.com/kingToolbox/WindTe
2023-03-12, Views: 2150 , Topics: SSH
-
开源邮件服务器
说明 Star数统计于2023-03-11。 Mail-in-a-Box Star:11.6k License:CC0 1.0 Universal 语言:Pyt
2023-03-11, Views: 2391 , Topics: GitHub
-
PowerShell、CMD、Linux 命令换行
场景 运行docker命令,该命令由多行组成。在Linux中使用\表示换行。 docker run \ --name nginx \ -p 80:80 \ ng
2023-03-10, Views: 4317 , Topics: Linux cmd PowerShell
-
Windows 命令中使用 WSL 命令
说明 Windows中可以直接使用WSL子系统的命令,PowerShell和CMD都支持。 格式 wsl+command,如使用date查看日期,可以使用wsl
-
Python 启动简易 HTTP 服务
Python3 python3 -m http.server 7800 Python2 python -m SimpleHTTPServer 7800
2023-03-08, Views: 2265 , Topics: Python
-
Spring Shell 基本使用
添加命令 @ShellComponent:等同于@Component,使Spring扫描进IoC容器。 @ShellMethod:定义命令。 - val
2023-03-07, Views: 1997 , Topics: Spring Shell Spring Boot
-
Spring Shell 基本设置
框架 以Spring Boot为底座,加上spring-shell-starter为框架。 不显示 Banner 在application.yaml中配置 sp
2023-03-06, Views: 2805 , Topics: Spring Shell Spring Boot
-
Spring Boot i18n 国际化
IDEA 插件 Resources Bundle Editor,方便查看和编辑多个i18n文件。 Accept-Language Accept-Language
2023-03-05, Views: 2220 , Topics: Spring Boot i18n IDEA
-
Spring 与 JPA 中的 @Transactional 注解的区别
配置不同 隔离级别 Spring提供事务范围内的隔离级别,JPA只能在链接范围。 传播性 Spring中使用propagation属性。 JPA中使用va
2023-03-04, Views: 2173 , Topics: Spring Boot JPA Spring
-
Spring Boot JPA 打印 SQL 语句及参数
需求 JPA执行SQL语句时,打印最终生成的SQL以及传入的参数。 方法一 show-sql设置为true表示打印SQL语句。 format_sql设置为tru
2023-03-03, Views: 8433 , Topics: Spring Boot JPA
-
Spring Boot JPA 打印 SQL 执行时间
需求 打印出JPA执行SQL语句时花费的时间。 添加配置 generate_statistics设置为true,表示生成统计信息。 spring: jpa:
2023-03-02, Views: 2771 , Topics: Spring Boot JPA
-
Spring Boot JPA 打印慢查询 SQL 语句
开启配置 注意:配置的1000表示1000毫秒 spring: jpa: properties: hibernate:
2023-03-01, Views: 2492 , Topics: Spring Boot JPA
-
Spring Boot JPA 关键字自动添加双引号
说明 对于一些数据库中保留的关键字,如果我们使用这些关键字去命名表名字、字段名可能会出现报错。 如:PostgreSQL中使用user作为表名,则必须在写SQL
2023-02-28, Views: 4048 , Topics: Spring Boot JPA
-
Spring Boot JPA 开启审计字段自动注入
需求 对于一些审计字段,如:创建时间,更新时间,创建人,更新人。 注解 Spring提供了这几种审计字段的注解,分别是: @CreatedDate:创建时间
2023-02-27, Views: 2081 , Topics: Spring Boot
-
Spring Boot JPA 使用 @Index 为字段添加索引
需求 使用JPA创建:唯一索引、普通索引、联合索引。 代码 使用@Table中的indexes属性,指定@Index索引。 @Setter @Getter @E
2023-02-25, Views: 3844 , Topics: Spring Boot JPA
-
Spring Boot JPA 使用 @IdClass 添加联合主键
需求 使用JPA添加联合主键。 代码 @Setter @Getter @Entity @Table(name = "hobby") @IdClass(Hobby
2023-02-25, Views: 1788 , Topics: Spring Boot JPA
-
Spring Boot JPA @Lock TransactionRequiredException
错误信息 Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: no t
2023-02-24, Views: 2378 , Topics: Spring Boot JPA
-
Spring Boot 单元测试无法 mock @Value 标注的字段
代码 @Service public class HiServiceImpl implements HiService { @Value("${ser
2023-02-23, Views: 1964 , Topics: Spring Boot
-
Spring Boot JSON 将 Long 类型序列化为 String 类型
需求 因Long类型传输到前端后,JavaScript处理会丢失精度,需转成String字符串类型。 Jackson 注解 Jackson 2.10版本提供了T
2023-02-22, Views: 3754 , Topics: Spring Boot