摘要: 1 ssh 配置 server { listen 443 ssl http2; #listen [::]:80; server_name xiaoqiezia.cn www.xiaoqiezia.cn; index index.html index.htm index.php default.htm 阅读全文
posted @ 2024-01-03 13:59 专心写代码 阅读(26) 评论(0) 推荐(0) 编辑
摘要: class AppleServiceSign { const CONSUMPTION_REQUEST = 'CONSUMPTION_REQUEST'; const DID_CHANGE_RENEWAL_PREF = 'DID_CHANGE_RENEWAL_PREF'; const DID_CHANG 阅读全文
posted @ 2023-09-04 09:46 专心写代码 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 elasticsearch.yml http: host: 0.0.0.0 xpack.security.enabled: false xpack.security.enrollment.enabled: true xpack.security.http.ssl: enabled: fa 阅读全文
posted @ 2023-02-17 17:21 专心写代码 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1 pom.xml增加 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version></dependency>2 增加conf 阅读全文
posted @ 2023-01-13 10:58 专心写代码 阅读(63) 评论(0) 推荐(0) 编辑
摘要: /** * @return array * testlog文件夹下的所有文件名 */protected function direInfo(){ //目录 $dir = Env::get('root_path') . 'public/testlog'; $handler = opendir($dir 阅读全文
posted @ 2022-06-07 09:37 专心写代码 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1 @Data 设置 get set 方法 2 @Autowired和@Resource都可以用于标记自动装配,作用一样但有些区别。@Autowired默认按类型匹配但这样通过@Autowired有可能找到多个同类型的bean,在这种情况下可以使用@Qualifier注解来找到要装配的bean,例如 阅读全文
posted @ 2022-04-24 11:00 专心写代码 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 金额计算必须要用Bigdecimal 类型; 2 加减乘除 public BigDecimal add(BigDecimal value); //加法 public BigDecimal subtract(BigDecimal value); //减法 public BigDecimal mul 阅读全文
posted @ 2022-03-03 11:46 专心写代码 阅读(2428) 评论(0) 推荐(0) 编辑
摘要: 数据库已有字段为mysql 关键字时,比如 desc 字段。通过mybatis-generator 自动生成后,字段就是desc,然后查询就会语法报错。 解决办法 增加配置--xx_db_generatorConfig.xml<property name="beginningDelimiter" v 阅读全文
posted @ 2022-03-01 19:49 专心写代码 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 脏页(内存页) 干净页:内存和磁盘中的数据一致 脏页:内存和磁盘中的数据不一致 为什么会出现 脏页 平时很快的更新操作,都是在写内存和日志。 他并不会马上同步到磁盘数据页,这时内存数据页跟磁盘数据页内容不一致,我们称之为脏页。 这里面就涉及 mysql 的内存管理机制 内存管理机制简述 缓冲区中包含 阅读全文
posted @ 2021-12-15 10:48 专心写代码 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 执行 pyenv install 3.8.0报错 解决办法 CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcru 阅读全文
posted @ 2021-03-01 19:00 专心写代码 阅读(2010) 评论(0) 推荐(0) 编辑