WebMVC overview
The WebMVC module is another very important module in the YMP framework besides the JDBC module. It integrates many features of the YMP framework and still maintains a consistent simple style in the design and usage of the functional structure. At the same time It also inherits the genes of the mainstream MVC framework. For developers who understand and are familiar with SSH and other framework technologies, it is extremely easy to get started with no learning cost.
Its main functional features are as follows:
- Standard MVC implementation, clear structure, simple configuration based entirely on annotations;
- Supports agreement mode, no need to write controller code , directly matches and executes the view;
- Supports multiple view technologies (JSP, Freemarker, Velocity, Text, HTML, JSON, Binary, Forward, Redirect, HttpStatus, etc.);
- Supports RESTful mode and URL style;
- Supports automatic binding of request parameters and controller method parameters;
- Supports parameter validity verification;
- Supports interception of controller methods;
- Support annotation configuration controller request routing mapping;
- Support automatic scanning of controller classes and registration;
- Support custom processing of events and exceptions;
- Support I18N resource internationalization;
- Supports controller methods and view caching;
- Supports controller parameter escaping;
- Supports plug-in extensions;
Maven package dependency
<dependency> <groupId>net.ymate.platform</groupId> <artifactId>ymate-platform-webmvc</artifactId> <version>2.0-SNAPSHOT</version> </dependency>
##Note: Add the above configuration in the project's pom.xml , this module has introduced the dependencies of the core package, verification framework package and cache package by default, without repeated configuration. If you do not want to enable the cache service, just add the excluded cache module configuration in
ymp-conf.properties, such as:
ymp.excluded_modules=cache