service-host-mvc

The server side componet of Nofdev RPC framework

License

License

The Apache Software License, Version 2.0
GroupId

GroupId

org.nofdev
ArtifactId

ArtifactId

service-host-mvc
Last Version

Last Version

1.4.1
Release Date

Release Date

Type

Type

pom
Description

Description

service-host-mvc
The server side componet of Nofdev RPC framework
Project URL

Project URL

https://github.com/nofdev/service-host-mvc
Source Code Management

Source Code Management

https://github.com/nofdev/service-host-mvc.git

Download service-host-mvc

How to add to project

<!-- https://jarcasting.com/artifacts/org.nofdev/service-host-mvc/ -->
<dependency>
    <groupId>org.nofdev</groupId>
    <artifactId>service-host-mvc</artifactId>
    <version>1.4.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.nofdev/service-host-mvc/
implementation 'org.nofdev:service-host-mvc:1.4.1'
// https://jarcasting.com/artifacts/org.nofdev/service-host-mvc/
implementation ("org.nofdev:service-host-mvc:1.4.1")
'org.nofdev:service-host-mvc:pom:1.4.1'
<dependency org="org.nofdev" name="service-host-mvc" rev="1.4.1">
  <artifact name="service-host-mvc" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.nofdev', module='service-host-mvc', version='1.4.1')
)
libraryDependencies += "org.nofdev" % "service-host-mvc" % "1.4.1"
[org.nofdev/service-host-mvc "1.4.1"]

Dependencies

runtime (10)

Group / Artifact Type Version
org.codehaus.groovy : groovy-all jar 2.4.4
org.springframework : spring-webmvc jar 4.3.7.RELEASE
org.nofdev : service-core jar 1.3.1
org.slf4j : slf4j-api jar 1.7.12
com.fasterxml.jackson.core : jackson-databind jar 2.6.3
com.fasterxml.jackson.datatype : jackson-datatype-joda jar 2.6.3
com.fasterxml.jackson.datatype : jackson-datatype-jsr310 jar 2.6.3
org.aspectj : aspectjrt jar 1.8.9
org.aspectj : aspectjweaver jar 1.8.9
org.nofdev : service-logging jar 1.0.0

Project Modules

There are no modules declared in this project.

service-host-mvc

What

It is a part of Nofdev RPC framework.

It is a rpc server side util for java project based on spring mvc.

Maven

稳定版
<dependency>
    <groupId>org.nofdev</groupId>
    <artifactId>service-host-mvc</artifactId>
    <version>1.4.7</version>
</dependency>

Notice

在 spring-boot-web 项目下测试通过

TODO 除了ExceptionSettings 其他都没用到 spring boot, 已经删除了 spring boot 的依赖, 所以 ExceptionSettings 无效

TODO 返回值对日期的序列化默认为 long 类型的时间戳, 如果要返回 ISO 类型的, 如果是 spring boot 项目, 在配置文件中增加spring.jackson.serialization.write_dates_as_timestamps=false, 这个理论上已经不需要了, 还没经过测试

Samples

Refer: https://github.com/yintai/generator-yintai-springboot sample test

Request

curl -XGET https://demo.yintai.com/facade/json/com.yintai.demo/Demo/hello?params=["hello"]

Response

 {"val":"hello", "callId":"f354e509-46de-4b1f-9fe6-ec1b3fdd1917", "err":null}
org.nofdev
Best glue, ever!!

Versions

Version
1.4.1
1.4.0
1.2.0
1.1.1
1.1.0
1.0.9