Git Product home page Git Product logo

mangoframework's Introduction

mangoframework

简单的javaweb框架。

使用说明

需要classpath下创建mongo.properties

web.xml中配置

    <servlet>
       <servlet-name>mangoservlet</servlet-name>
        <servlet-class>org.mangoframework.core.MangoDispatcher</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>mangoservlet</servlet-name>
        <!--<url-pattern>/test/*</url-pattern>-->
        <url-pattern>/</url-pattern>
    </servlet-mapping>

mongo.properties配置说明

  • 基本配置 mango.controller.package :controller所属包名,如com.xxx.xx.controller

  • 文件大小 mango.filesize.max :上传单个文件最大值 默认1024000(1M) mango.size.max :多个文件总共最大值 默认:40960000(默认4M)

  • 其他 mango.errorpage :全局错误页面地址 mango.safe.http : 是否启用安全http。选项:disabled/yes;默认disabled mango.escape:是否过滤xss。选项true/false

  • 过滤器 mango.filter.com.xxx.xx.filter.AuthorityFilter=true 需要实现 org.mangoframework.core.dispatcher.MangoFilter

  • 处理器 mongo.view.xxx=完整包名.类名。如:

  • json后缀处理器 mango.view.json=cn.com.xxx.xx.view.JsonView

  • html后缀处理器 mango.view.html=org.mangoframework.core.view.JspView(/WEB-INF/web,.jsp)

  • 无后缀处理器 mango.view.default=org.mangoframework.core.view.JspView(/WEB-INF/jsp,.jsp)

mangoframework's People

Watchers

 avatar  avatar

Forkers

jinchee

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.