MVN

cn.wangshuaitong.library : module-result-conversion

Maven & Gradle

Nov 03, 2022

结果转换器:使用spring aop特性在处理完业务代码之后处理业务结果到返回结果的便捷式转换 使用方式: 第一步:配置spring扫描该路径,加载结果转换组件 第二步:在需要转换的控制器方法上加上转换结果的注解 @ResultConversion(使得aop可以在结果之后进行处理),并制定转换器 扩展点: 可以自定义扩展返回结果对象和转换器 结果对象:要求实现Result或者WebResult接口 转 换 器:可以简单实现 ResultConverter 接口,也可以选择实现其子抽象方法,抽象方法在各个层面处理了各个层面相应的逻辑

<dependency>
    <groupId>cn.wangshuaitong.library</groupId>
    <artifactId>module-result-conversion</artifactId>
    <version>1.0.4</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of cn.wangshuaitong.library : module-result-conversion to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.0.4

All Versions

Choose a version of cn.wangshuaitong.library : module-result-conversion to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.0.x
module-result-conversion-1.0.4
module-result-conversion-1.0.3
module-result-conversion-1.0.2
module-result-conversion-1.0.1
module-result-conversion-1.0.0

How to add a dependency to Maven

Add the following cn.wangshuaitong.library : module-result-conversion maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>cn.wangshuaitong.library</groupId>
    <artifactId>module-result-conversion</artifactId>
    <version>1.0.4</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following cn.wangshuaitong.library : module-result-conversion gradle dependency to your build.gradle file:

implementation 'cn.wangshuaitong.library:module-result-conversion:1.0.4'

Gradle Kotlin DSL: Add the following cn.wangshuaitong.library : module-result-conversion gradle kotlin dependency to your build.gradle.kts file:

implementation("cn.wangshuaitong.library:module-result-conversion:1.0.4")

How to add a dependency to SBT Scala

SBT Scala: Add the following cn.wangshuaitong.library : module-result-conversion sbt scala dependency to your build.sbt file:

libraryDependencies += "cn.wangshuaitong.library" % "module-result-conversion" % "1.0.4"