English | 简体中文
A Simple Spring-Framework implementation for learning.
-
api document for
mine-spring: mine-spring-api-document -
Example project for
mine-spring: short-link-server
mine-spring is a practice product of learning Spring-Framework source code.
Through this project, you can understand the simple implementation ways of spring and learn about Spring more clearly!
- Simple Spring IoC container implementation.
- AOP programming support.
- Simple yet functional springMVC function.
- Almost the same annotation usage as Spring-Framework.
- JavaConfig Class
@Configurationsupport - MultipartFile upload and download
MultipartFile - Jsp and simple HTML template support which support el-expression
${} @RequestBodyand@ResponseBodysupport@Autowired- coming soon...
create an empty web project, then add mine-spring maven dependency:
<dependency>
<groupId>com.yankaizhang</groupId>
<artifactId>mine-spring</artifactId>
<version>0.0.5</version>
</dependency>@Controller
public class TestController {
@Autowired
TestServiceImpl testService;
@RequestMapping("/index")
public String index(){
testService.hi();
return "index";
}
}For more examples, check module mine-spring-example and example project short-link-server
- spring-framework - spring-projects/spring-framework
- Spring IoC Container implementation
-
BeanPostProcessorandBeanFactoryPostProcessor -
@Configurationand@Beanbased Java Config support - Annotation Based AOP support
@Aspect -
@ResponseBodyand JSON parser -
@Autowiredproperty injection - MultipartFile upload and download support
-
@AroundAspect - Simple Spring JDBC
- transaction support
- Simple ORM like Spring Data JPA
-
The Controller's method cannot be accessed by the AOP aspect. -
Repeated registration when registering HandlerMapping. -
Circular Reference for singleton and prototype beans
If you like this repository, why not star 🌟 or fork
- Author:dzzhyk
- Email:dzzhyk@qq.com
- Personal Blog
- MIT © dzzhyk
- BeanDefinition
- BeanFactory
- ApplicationContext
- AopProxy




