Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/6tail/nlf2-maven
a lightweight java framework. NLF2框架是一款原创的、低调的轻量级java框架,它无侵入、无依赖、零配置、无注解,看一点例子,你很快就能上手。
https://github.com/6tail/nlf2-maven
java lightweight-java-framework
Last synced: 25 days ago
JSON representation
a lightweight java framework. NLF2框架是一款原创的、低调的轻量级java框架,它无侵入、无依赖、零配置、无注解,看一点例子,你很快就能上手。
- Host: GitHub
- URL: https://github.com/6tail/nlf2-maven
- Owner: 6tail
- License: mit
- Created: 2018-03-28T08:04:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-16T18:32:17.000Z (over 1 year ago)
- Last Synced: 2023-07-28T00:16:17.576Z (over 1 year ago)
- Topics: java, lightweight-java-framework
- Language: Java
- Homepage: http://6tail.cn/nlfdemo
- Size: 461 KB
- Stars: 2
- Watchers: 3
- Forks: 6
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NLF2 [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/6tail/nlf2/blob/master/LICENSE)
NLF2 is a lightweight java framework.
> Support since java 1.5
[简体中文](https://github.com/6tail/nlf2-maven/blob/master/README_ZH.md)
## Usage
I suggest you to use nlf2-core v1.8.99 on [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cnlf2).
### Release
```xml
cn.6tail
nlf2-core
1.8.99```
### Snapshot```xml
sonatype
https://oss.sonatype.org/content/groups/public/
true
daily
warn
```
```xml
cn.6tail
nlf2-core
1.8.9-SNAPSHOT```
### Download
If you will use jars in your projects, I suggest you to download latest snapshot versions with less bugs.
[Download](https://github.com/6tail/nlf2-maven/releases)
## Example
```java
package test;import com.nlf.App;
import com.nlf.Bean;
import com.nlf.core.IRequest;
import com.nlf.extend.web.WebView;
import com.nlf.extend.dao.sql.SqlDaoFactory;/**
* Controller without extends or implements
*/
public class User{
/**
* Auto mapped URL: ${ctx}/test.User/info?id=xxx
*/
public Object info(){
IRequest r = App.getRequest();
String id = r.get("id","not_empty");
Bean user = SqlDaoFactory.getDao().getSelecter().table("user").where("id",id).one();
return WebView.page("/WEB-INF/jsp/user/info.jsp").setAttribute("user",user);
}
}
```## Documentation
Please visit [http://6tail.cn/nlfdemo](http://6tail.cn/nlfdemo "http://6tail.cn/nlfdemo")
## Contact