强烈建议使用J2mvc 2.1以后的版本。
version 2.1.01
1.优化路径跳转,Servlet和Filter方式的路径设置
2.优化内存销毁
3.更换JSON依赖包
4.优化接收方法RequestMethod,封装不同ContentType格式提交
封装JSON,XML数据提交模块
JSON请求示例
{
"id":"JSON134851",
"title":"JSON提交的标题",
"price":65.1,
"stock":100
}
XML请求示例
<!DOCTYPE root [
<!ELEMENT root ANY>
<!ATTLIST Product SSN ID #REQUIRED>]>
<root>
<Product SSN='id'>XMLID12354</Product>
<Product SSN='title'>XML提交的标题 </Product>
<Product SSN='price'>55 </Product>
<Product SSN='stock'>32 </Product>
</root>
version ...
| License | Apache 2.0 |
|---|---|
| Tags | frameworkwebmvc |
| HomePage | http://www.j2mvc.com 🔍 Inspect URL |
| Date | Dec 29, 2021 |
| Files | pom (5 KB) jar (123 KB) View All |
| Repositories | CentralSonatype |
| Ranking | #250135 in MvnRepository (See Top Artifacts) |
| Used By | 2 artifacts |
| Vulnerabilities | Vulnerabilities from dependencies: CVE-2025-48976 CVE-2024-47554 CVE-2023-26464 View 10 more ... |
Compile Dependencies (0)
| Category/License | Group / Artifact | Version | Updates |
|---|
Provided Dependencies (13)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
| JSON Lib Apache 2.0 | com.alibaba » fastjson1 vulnerability | 1.2.58 | 2.0.60 | |
BSD | com.belerweb » pinyin4j | 2.5.0 | 2.5.1 | |
Apache 2.0 | com.j2mvc » j2mvc-util | 2.1.05 | 2.1.09 | |
| Base64 Apache 2.0 | commons-codec » commons-codec | 1.12 | 1.20.0 | |
| JDBC Pool Apache 2.0 | commons-dbcp » commons-dbcp | 1.4 | 2.13.0 | |
| Upload Manager Apache 2.0 | commons-fileupload » commons-fileupload2 vulnerabilities | 1.4 | 2.0.0-M4 | |
| I/O Apache 2.0 | commons-io » commons-io2 vulnerabilities | 2.6 | 2.21.0 | |
| Mail Client CDDLGPL 2.0 | javax.mail » mail | 1.4.7 | 1.6.2 | |
| Java Spec EPL 2.0GPL | javax.servlet » javax.servlet-api | 3.0.1 | 6.1.0 | |
| Logging Apache 2.0 | log4j » log4j6 vulnerabilities | 1.2.17 | 2.25.2 | |
| Parser Generator BSD 3-clause | org.antlr » antlr-runtime | 3.5.1 | 4.13.2 | |
| Bytecode Apache 2.0LGPL 2.1MPL 1.1 | org.javassist » javassist | 3.25.0-GA | 3.30.2-GA | |
| HTML Parser MIT | org.jsoup » jsoup2 vulnerabilities | 1.12.1 | 1.21.2 |
Licenses
| License | URL |
|---|---|
| The Apache Software License, Version 2.0 | http://www.apache.org/licenses/LICENSE-2.0.txt |
Developers
| Name | Dev Id | Roles | Organization | |
|---|---|---|---|---|
| work | wwwdev<at>qq.com |