Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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框架,它无侵入、无依赖、零配置、无注解,看一点例子,你很快就能上手。

Awesome Lists containing this project

README

        


NLF2

# 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

NLF