Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 1.67 KB

README.md

File metadata and controls

67 lines (56 loc) · 1.67 KB

Mini-framework

Build Status Maven Central

<properties>
    <mini-framework.version>1.1.0</mini-framework.version>
</properties>

Mini-IoC

A Spring-style simple Ioc container.

<dependency>
    <groupId>com.youthlin</groupId>
    <artifactId>mini-ioc</artifactId>
    <version>${mini-framework.version}</version>
</dependency>

examples: https://github.com/YouthLin/examples/tree/master/example-my-ioc

JUnit Supports

@RunWith(MiniRunner.class)      //Use MiniRunner to run Test
@Scan("com.youthlin.examples")  //Scan packages
public class MyServiceTest{
    @Resource
    private IHelloService helloService;
    @Test
    public void test(){
        helloService.sayHello("JUnit");
    }
}

Mini-MVC

A Spring MVC style simple MVC framework, which supports MyBatis3, Thymeleaf, etc.

<dependency>
    <groupId>com.youthlin</groupId>
    <artifactId>mini-mvc</artifactId>
    <version>${mini-framework.version}</version>
</dependency>

examples: https://github.com/YouthLin/examples/tree/master/example-mini-mvc

Mini-RPC

A Mini RPC framework, which supports callback, async, etc.

<dependency>
    <groupId>com.youthlin</groupId>
    <artifactId>mini-rpc</artifactId>
    <version>${mini-framework.version}</version>
</dependency>

examples: https://github.com/YouthLin/examples
example-rpc-api/provider/consumer