<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>85</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>87</b><br />
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>依星源码资源网,依星资源网 - Java教程</title>
    <link>http://net188.com/forum-47-1.html</link>
    <description>Latest 20 threads of Java教程</description>
    <copyright>Copyright(C) 依星源码资源网,依星资源网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sat, 30 May 2026 10:59:16 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://net188.com/static/image/common/logo_88_31.gif</url>
      <title>依星源码资源网,依星资源网</title>
      <link>http://net188.com/</link>
    </image>
    <item>
      <title>Spring Boot 2.5、3.5 和 4.0 之间的核心差异，以及各版本升级注意事项的详细对比</title>
      <link>http://net188.com/thread-26747-1-1.html</link>
      <description><![CDATA[Spring Boot 2.5、3.5 和 4.0 之间的核心差异，以及各版本升级注意事项的详细对比
以下是 Spring Boot 2.5、3.5 和 4.0 之间的核心差异，以及各版本升级注意事项的详细对比：[hr]‌一、Spring Boot 2.5、3.5、4.0 核心差异对比‌表格[/backcolor]
[/tr]












[/t ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 09 Apr 2026 02:07:04 +0000</pubDate>
    </item>
    <item>
      <title>springboot4.0新增哪些功能</title>
      <link>http://net188.com/thread-26746-1-1.html</link>
      <description><![CDATA[Spring Boot 4.0‌ 带来了多项重大更新，显著提升了性能、开发体验与现代化能力 ‌官网。以下是核心新增功能的清晰梳理：
[*]‌模块化自动配置‌
将原先庞大的 spring-boot-autoconfigure 单体 JAR 拆分为 ‌47 个轻量模块‌，实现按需加载。例如引入 spring-boot-start ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 09 Apr 2026 01:58:18 +0000</pubDate>
    </item>
    <item>
      <title>springboot针对于2万并发连接的场景参数</title>
      <link>http://net188.com/thread-25797-1-1.html</link>
      <description><![CDATA[springboot针对于2万并发连接的场景参数
## 1. Tomcat 线程配置优化

```yaml
server:
  tomcat:
    threads:
      max: 500            # 从200调高，建议 400-800
      min-spare: 50       # 从20调高，保持更多热线程
    accept-count: 5000    # 从1000调高， ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 04 Jan 2026 03:00:56 +0000</pubDate>
    </item>
    <item>
      <title>java中computeIfAbsent 方法详解（可以按某一值分组）</title>
      <link>http://net188.com/thread-25619-1-1.html</link>
      <description><![CDATA[java中computeIfAbsent 方法详解（可以按某一值分组）
# `computeIfAbsent` 方法详解

```java
aipGroups.computeIfAbsent(aip, k -&gt; new ArrayDeque()).add(server);
```

这是一行非常简洁的 Java 8 代码，完成了多个操作。让我拆解说明：

## 功能分解

### 1. `comp ...]]></description>
      <category>Java教程</category>
      <author>admin</author>
      <pubDate>Fri, 26 Dec 2025 14:56:51 +0000</pubDate>
    </item>
    <item>
      <title>Spring Boot 线程池编号解析</title>
      <link>http://net188.com/thread-25596-1-1.html</link>
      <description><![CDATA[## Spring Boot 线程池编号解析

### `http-nio-9999-exec-X` 含义

| 部分 | 含义 |
|------|------|
| `http` | HTTP 协议处理 |
| `nio` | NIO（非阻塞 I/O）模式 |
| `9999` | 监听端口号 |
| `exec` | 执行器（Executor） |
| `X` (1-10) | **线程编号** |

---

# ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 24 Dec 2025 01:46:59 +0000</pubDate>
    </item>
    <item>
      <title>Spring 任务线程池 vs Tomcat 线程池</title>
      <link>http://net188.com/thread-25595-1-1.html</link>
      <description><![CDATA[## Spring 任务线程池 vs Tomcat 线程池

### 核心区别

| 特性 | Tomcat 线程池 | Spring 任务线程池 |
|------|--------------|------------------|
| **用途** | 处理 HTTP 请求 | 执行异步任务 `@Async` |
| **触发方式** | 外部 HTTP 请求触发 | 代码主动调用 |
|  ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 24 Dec 2025 01:46:01 +0000</pubDate>
    </item>
    <item>
      <title>从JDK8飞升到JDK17，再到未来的JDK21</title>
      <link>http://net188.com/thread-25546-1-1.html</link>
      <description><![CDATA[从JDK8飞升到JDK17，再到未来的JDK21

背景
2022年Spring6和 SpringBoot3相继推出，在此之前，Java社区一直是\&quot;新版任你发，我用Java 8\&quot;，不管新版本怎么出，很少有人愿意升级。
这一次，Spring 直接来了个大招，SpringBoot3和Spring6的最低依赖就是JDK17！跨过 JDK 8-16 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 20 Dec 2025 16:15:20 +0000</pubDate>
    </item>
    <item>
      <title>java中文与转义串（形如..\\xC4\\xDA\\xB9\\xDB...带 \\xNN 的转义串）的相互转换函数</title>
      <link>http://net188.com/thread-25202-1-1.html</link>
      <description><![CDATA[java中文与转义串（形如..\\xC4\\xDA\\xB9\\xDB...带 \\xNN 的转义串）的相互转换函数
分两步说：  
1）有类似 `...\\xC4\\xDA\\xB9\\xDB...` 这样的转义串，要先还原回原始字节；  
2）再按正确的字符集（GBK/UTF‑8 等）把字节解码成中文字符串。

下面是成对的“编码/解码”工 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 25 Nov 2025 01:21:10 +0000</pubDate>
    </item>
    <item>
      <title>java中@Validated和@RequestBody的用法和作用</title>
      <link>http://net188.com/thread-25093-1-1.html</link>
      <description><![CDATA[java中@Validated和@RequestBody的用法和作用先说 `@Validated` 的基本功能，然后结合 `@RequestBody SendCodeRequest` 在 Controller 上的典型用法，解释它和 `@Valid` 的区别、触发时机、配合你的 `GlobalExceptionHandler` 的行为。

**1. `@Validated` 的基本作用** ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Nov 2025 06:04:50 +0000</pubDate>
    </item>
    <item>
      <title>Spring Boot IOCP 异步 TCP 服务示例源码</title>
      <link>http://net188.com/thread-24942-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 05 Nov 2025 09:46:28 +0000</pubDate>
    </item>
    <item>
      <title>springboot有关redis配置的详解（基于 Spring Boot 2.x，Lettuce 客户端）</title>
      <link>http://net188.com/thread-24849-1-1.html</link>
      <description><![CDATA[springboot有关redis配置的详解（基于 Spring Boot 2.x，Lettuce 客户端）
说明（基于 Spring Boot 2.x，Lettuce 客户端）
[*]redis.host：Redis 实例地址（默认 127.0.0.1）
[*]redis.port：Redis 端口（默认 6379；）
[*]redis.password：授权密码（对应 Redis 配置 r ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 08:05:16 +0000</pubDate>
    </item>
    <item>
      <title>Redis Cluster 概览以及Spring Boot 中的使用</title>
      <link>http://net188.com/thread-24847-1-1.html</link>
      <description><![CDATA[Redis Cluster 概览以及Spring Boot 中的使用
Redis Cluster 概览
[*]目的：水平扩展+高可用。数据按 16384 个 slot 分片（slot = CRC16(key) % 16384），各主节点持有一部分 slot；每个主节点有 0..N 个从节点。
[*]客户端路由：请求发到任意节点，若不在本节点，该节 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 04:30:09 +0000</pubDate>
    </item>
    <item>
      <title>springboot如何连接不同序号的redis数据库，即连接多个不同的数据库</title>
      <link>http://net188.com/thread-24846-1-1.html</link>
      <description><![CDATA[springboot如何连接不同序号的redis数据库，即连接多个不同的数据库
给两个 Redis 连接工厂，分别指向不同的 DB，再各自绑定到不同的 RedisTemplate。
application.yml
使用
注意
[*]以上仅适用于单机/主从模式。Redis Cluster 不支持多 DB，固定为 0，需要用 key 前缀 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 03:52:35 +0000</pubDate>
    </item>
    <item>
      <title>springboot中处理URL中参数有#号的解决方案</title>
      <link>http://net188.com/thread-24845-1-1.html</link>
      <description><![CDATA[springboot中处理URL中参数有#号的解决方案
“#”是 URL 的片段分隔符，浏览器/HTTP 客户端不会把它原样发给服务端。要想放到路径变量里，必须在客户端把 “#” 做 URL 编码成 “%23”。Spring 会自动解码，还原成原始的 “#”。服务端（保持 PathVariable，最好放开匹 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 03:33:20 +0000</pubDate>
    </item>
    <item>
      <title>Spring Boot中同时存在“JSON 对象模板”和“二进制模板”的处理方式</title>
      <link>http://net188.com/thread-24833-1-1.html</link>
      <description><![CDATA[Spring Boot中同时存在“JSON 对象模板”和“二进制模板”的处理方式
[/backcolor]
下面把“JSON 对象模板”和“二进制模板”放到同一个配置类里，分别注入使用。

使用示例


下面是两个config文件，Spring Boot 可同时存在多个 @Configuration，只要 Bean 名称不冲突 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 02:50:50 +0000</pubDate>
    </item>
    <item>
      <title>springboot对redis存取二进制数据</title>
      <link>http://net188.com/thread-24820-1-1.html</link>
      <description><![CDATA[springboot对redis存取二进制数据
可以用 RedisTemplate 配置成“值为 byte[] 的模板”，用 ByteArrayRedisSerializer 确保按原始二进制读写（不做字符编码/对象序列化）。配置
使用

[/backcolor][/backcolor]

[/backcolor][/backcolor]要点
[*]不要用 StringRedisTem ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 01:57:10 +0000</pubDate>
    </item>
    <item>
      <title>java示例演示从一个类对象复制到另一个类对象的字段赋值（字段名/类型相同或可转换）</title>
      <link>http://net188.com/thread-24205-1-1.html</link>
      <description><![CDATA[java示例演示从一个类对象复制到另一个类对象的字段赋值（字段名/类型相同或可转换）
1. 手工复制（最安全直观）
2. Spring BeanUtils
忽略某些字段:
3. Apache Commons BeanUtils（会做字符串↔基本类型转换）
4. 反射通用工具（仅复制同名同类型）
5. MapStruct（编译 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Fri, 26 Sep 2025 08:41:57 +0000</pubDate>
    </item>
    <item>
      <title>springboot中判断服务器某个端口是否被占用</title>
      <link>http://net188.com/thread-23397-1-1.html</link>
      <description><![CDATA[springboot中判断服务器某个端口是否被占用主要功能：

检查指定端口是否被占用
自动查找可用端口
支持在应用启动时动态切换端口
提供日志输出
你可以根据实际需求：

修改端口检查的超时时间
添加重试机制
自定义端口范围
增加更详细的错误处理

在 SpringBoot 中检查 ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 26 Aug 2025 07:06:43 +0000</pubDate>
    </item>
    <item>
      <title>Spring Boot应用中查看线程池连接数</title>
      <link>http://net188.com/thread-23128-1-1.html</link>
      <description><![CDATA[在Spring Boot应用中查看线程池连接数可以通过以下几种方式实现：

通过Actuator端点查看‌
添加Spring Boot Actuator依赖后，访问/actuator/metrics/tomcat.threads.busy可获取当前繁忙线程数
访问/actuator/metrics/tomcat.threads.current可查看当前线程总数
通过JMX ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 19 Aug 2025 02:49:43 +0000</pubDate>
    </item>
    <item>
      <title>Java中，除法取整和取余的以下几种方式</title>
      <link>http://net188.com/thread-22634-1-1.html</link>
      <description><![CDATA[在Java中，除法取整和取余有以下几种方式：

除法取整：

整数相除会自动向下取整（截断小数部分）
使用 Math.floor() 向下取整
使用 Math.ceil() 向上取整
使用 Math.round() 四舍五入

取余运算：

使用 % 运算符
使用 Math.floorMod() (Java 8+)

示例代码：

int a  ...]]></description>
      <category>Java教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 09 Aug 2025 03:21:34 +0000</pubDate>
    </item>
  </channel>
</rss>