Coder Social home page Coder Social logo

pangsir8983 / jfantasy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from limaofeng/jfantasy

0.0 2.0 0.0 23.93 MB

jfantasy 是一个提供java快速开发的集成框架。使用 spring、hibernate、mybatis 等常用jar、并提供用户、权限、数据字典等功能

Java 55.15% JavaScript 40.25% CSS 1.50% HTML 0.09% FreeMarker 3.00%

jfantasy's Introduction

jfantasy

Build Status Coverage Status

jfantasy 整合了一些开源常用的java开发框架. 主要为了方便开发基于 spring mvc 的 RESTful 接口

快速开始

    <repository>
        <id>jfantasy snapshot</id>
        <name>jfantasy snapshot</name>
        <url>http://maven.jfantasy.org/content/repositories/snapshots/</url>
    </repository>

    <dependency>
      <groupId>org.jfantasy</groupId>
      <artifactId>jfantasy-core</artifactId>
      <version>1.0.0</version>
    </dependency>

主要功能及使用技术介绍

RESTful 支付接口 微信接口 Hibernate Mybatis

演示系统 RESTfull API 地址

http://api-docs.jfantasy.org

3.3.17 升级日志

  • Pager 对象 json 格式调整为 :
 {
     "count": 4,
     "per_page": 15,
     "total": 1,
     "page": 1,
     "order": [
         "asc"
     ],
     "items": [
         ]
 }
  • 升级 spring-swagger 到 springfox
  • RESTful 添加 X-Page-Fields 请求头 条件查询返回多条数据时,默认返回list。如果需要分页支持需要在请求头中添加 X-Page-Fields:true。注:后端java实现全部返回Pager对象。
  • RESTful 添加 X-Result-Fields 请求头 当调用端想控制返回字段时,在请求头中添加:X-Result-Fields:username,sex. 这样就只会返回两个字段
  • RESTful 添加 X-Expend-Fields 请求头 当子对象、及关联对象被服务端屏蔽时,前端可以通过设置该字段返回其关联对象的信息:如:X-Expend-Fields:member,orders

© 2015 李茂峰 [email protected]

Licensed under MIT

jfantasy's People

Contributors

limaofeng avatar hebo237x avatar wangmingliang avatar

Watchers

James Cloos avatar 胖先生 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.