真狠,為了干掉 HTTP ,Spring團(tuán)隊(duì)又開源nohttp了!
Spring 團(tuán)隊(duì)開源 nohttp 項(xiàng)目,用以查找、替換和阻止 http:// 的使用。
項(xiàng)目是為了在可能使用 https:// 的情況下不使用到 http://,確保不會(huì)發(fā)生中間人攻擊。
Spring Framework 目前已經(jīng)更新,以解析通過類路徑使用 HTTPS 位置的 XML 位置。以往這僅適用于使用 HTTP 的 URL。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">
https://www.springframework.org/schema/beans/spring-beans.xsd
URL 通過類路徑解析,而不需要網(wǎng)絡(luò)連接。
nohttp 可用于查找、替換和阻止 http:// 的使用
項(xiàng)目庫包含了幾大模塊:
nohttp - 核心,允許查找和替換 http:// URL
nohttp-cli - 輕量的 nohttp 封裝,用于命令行運(yùn)行
nohttp-checkstyle - nohttp 與 checkstyle 集成
nohttp-gradle - nohttp 與 Gradle 集成
samples - 一些 nohttp 用例
來源:https://urlify.cn/mmmI32
推薦閱讀
說實(shí)話!你知道 Java 中的回調(diào)機(jī)制嗎?
評(píng)論
圖片
表情
