<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Attic - javasetips</title>
    <link>https://tingyulou.top/forum.php?mod=forumdisplay&amp;fid=44</link>
    <description>Latest 20 threads of javasetips</description>
    <copyright>Copyright(C) Attic</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 20 Jun 2026 19:31:44 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://tingyulou.top/static/image/common/logo_88_31.gif</url>
      <title>Attic</title>
      <link>https://tingyulou.top/</link>
    </image>
    <item>
      <title>乐观锁库存冻结操作</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=374</link>
      <description><![CDATA[代码分析：乐观锁库存冻结操作
基于 MyBatisDisposeUtil.java 的分析，这段代码实现了带乐观锁的库存冻结功能。
核心功能
这是一个**库存预留（冻结）**操作，用于在业务订单处理时锁定一定数量的库存，防止超卖。
方法参数解析



参数
作用




oriStock
原始库存对象 ...]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Mon, 11 May 2026 02:08:19 +0000</pubDate>
    </item>
    <item>
      <title>mybatisplus 中 的更新</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=371</link>
      <description><![CDATA[updateById
updatePrimayKeyByLoginUser 全是忽略null值更新，需要加上注解
mybatisplus 3.5.0+以上
@TableField(updateStrategy=IGNORED)
@TableName(updateStrategy=IGNORED) 少用
或用LambdaQueryWrapper来修改]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Wed, 06 May 2026 06:38:57 +0000</pubDate>
    </item>
    <item>
      <title>java 中字符串substring 截取的一部份编码和旧编码是一样的还是和服务器编码是一样的</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=193</link>
      <description><![CDATA[在 Java 中，substring 方法用于从字符串中截取一部分内容，它不会改变字符串的编码。

字符串的编码

在 Java 中，字符串内部是以 UTF-16 编码存储的，每个字符占用 2 个字节（对于基本多语言平面的字符），对于一些特殊字符（如表情符号等），可能需要使用代理对（sur ...]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 11 Feb 2025 06:44:16 +0000</pubDate>
    </item>
    <item>
      <title>springboot整合aad</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=167</link>
      <description><![CDATA[[md]123

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Wed, 04 Dec 2024 08:57:21 +0000</pubDate>
    </item>
    <item>
      <title>新建索引</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=166</link>
      <description><![CDATA[[md]create index seeyon_so_position_mapping_position_name_index on seeyon_so_position_mapping(position_name(100))

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 03 Dec 2024 10:40:39 +0000</pubDate>
    </item>
    <item>
      <title>503 service unbelievleable</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=165</link>
      <description><![CDATA[[md]端口不匹配

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Mon, 02 Dec 2024 06:00:20 +0000</pubDate>
    </item>
    <item>
      <title>zuul相关配置</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=121</link>
      <description><![CDATA[[md]```
server: 
  port: 8088
management:
  health:
    defaults:
      enabled: false
swagger:
    enabled: true
zuul:
  #ignore-local-service: false  
  routes:
    fin-service:
      path: /*/**
      serviceId: xxxx
    doc-service:
]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 29 Oct 2024 02:11:55 +0000</pubDate>
    </item>
    <item>
      <title>nacos 配置</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=120</link>
      <description><![CDATA[[md]![image.png](data/attachment/forum/202410/25/143941kmts54otn1kjlhon.png \&quot;image.png\&quot;)

```
server: 
    port: 8086
seeyon:
    baseUrl: https://XXXX
    restUrl: https://XXX
    accountId: 670869647114347
    orgAdminRoleId: -xxx
    userna]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Fri, 25 Oct 2024 06:39:05 +0000</pubDate>
    </item>
    <item>
      <title>springboot 打包时跳过测试配置</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=117</link>
      <description><![CDATA[[md]![image.png](data/attachment/forum/202410/24/120429wgbp8u18771gbcqg.png \&quot;image.png\&quot;)

```

                
                    
                        org.apache.maven.plugins
                        maven-surefire-plugin
]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Thu, 24 Oct 2024 04:04:52 +0000</pubDate>
    </item>
    <item>
      <title>mvn install 跳过测试(注意install 的时候有没有测试有要跳过)所以本地不要连生产</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=116</link>
      <description><![CDATA[[md]```
mvn clean install -Dmaven.test.skip=true
```

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Thu, 24 Oct 2024 04:00:10 +0000</pubDate>
    </item>
    <item>
      <title>pom 导包失败解决方案</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=115</link>
      <description><![CDATA[[md]1、下载的源没有这个包
2、pom文件中有错误的包定义导致中断导包


[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Thu, 24 Oct 2024 03:44:55 +0000</pubDate>
    </item>
    <item>
      <title>webservice</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=110</link>
      <description><![CDATA[[md]### weservice pom配置

```

            org.apache.axis
            axis
            1.4
        
```

```

            javax.xml.rpc
            javax.xml.rpc-api
            1.1.2
        
```

```

        
            org.apache]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Wed, 23 Oct 2024 08:24:26 +0000</pubDate>
    </item>
    <item>
      <title>springboot 使用双数据源</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=109</link>
      <description><![CDATA[[md]### 1、主配置

生成各个数据源的datasource注入到spring

```
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationP ...]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Wed, 23 Oct 2024 06:57:04 +0000</pubDate>
    </item>
    <item>
      <title>java中\\\\替换成/</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=108</link>
      <description><![CDATA[[md]```
str1 = str1.replaceAll(\&quot;\\\\\\\\\&quot;,\&quot;/\&quot;);
```

正斜杠：/ 键盘上右Shift左边那个键

反斜杠：\\\\ 键盘上退格下面那个键

ps:
oss下载全为/正符

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Wed, 23 Oct 2024 06:24:08 +0000</pubDate>
    </item>
    <item>
      <title>corn表达式</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=105</link>
      <description><![CDATA[[md]![image.png](data/attachment/forum/202410/22/170235rljjc8yxy01wyjhv.png \&quot;image.png\&quot;)

1/10 25-45 18 22 10 ?
表示10.22号 18:25-18:45 每10s执行一次
Cron 表达式是一种用于指定定时任务执行时间的字符串表达式。它由 6 个字段组成，分别表示秒、分钟、小时、 ...]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Oct 2024 09:03:43 +0000</pubDate>
    </item>
    <item>
      <title>oss使用步骤</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=104</link>
      <description><![CDATA[[md]### 1、编写配置文件 Ossconfig

```
package com.test1.timer.systemconfig.oss;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram ...]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Oct 2024 07:03:11 +0000</pubDate>
    </item>
    <item>
      <title>判断是否有/或//逻辑</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=103</link>
      <description><![CDATA[[md]```
String fileUrl = null;
        if (StringUtils.isNotBlank(rootDirectory)) {
            if (filePath.startsWith(\&quot;/\&quot;)) {
                fileUrl = rootDirectory +\&quot;/\&quot;+getServerDirByType(attachType)+ filePath;
            } else {
]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Oct 2024 04:08:47 +0000</pubDate>
    </item>
    <item>
      <title>@ConfigurationProperties(prefix = &quot;test.table&quot;)是 否可以使用</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=102</link>
      <description><![CDATA[[md]@ConfigurationProperties(prefix = \&quot;test.table\&quot;)是 否可以使用

```
@Component
@ConfigurationProperties(prefix = \&quot;test.table\&quot;)
public class SeeyonTableConfig {

    private String test1;
    private String test2;
    private String test3;
    pr]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Oct 2024 02:22:53 +0000</pubDate>
    </item>
    <item>
      <title>java生成对象-流式创建</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=101</link>
      <description><![CDATA[[md]习惯命使用流式方法创建使用对象

核心为在set时返回对象

```
public SeeyonTableConfig setFormmain_0304(String formmain_0304) {
        this.formmain_0304 = formmain_0304;
        return this;
    }
```

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Tue, 22 Oct 2024 02:20:27 +0000</pubDate>
    </item>
    <item>
      <title>compareTo语法</title>
      <link>https://tingyulou.top/forum.php?mod=viewthread&amp;tid=99</link>
      <description><![CDATA[[md]```
day.compareTo(queryBean.getFromDay()) &gt; -1 表示 day 属性 &gt;=fromday
```

[/md]]]></description>
      <category>javasetips</category>
      <author>Kyle</author>
      <pubDate>Mon, 21 Oct 2024 03:40:12 +0000</pubDate>
    </item>
  </channel>
</rss>