How to Develop a java open-source framework ----- the implementation of the Jvn framework convert the browser parameter passing background to Bean (fourth), ----- jvnbean
Preface
I,
The blogger is teaching you how to develop a javaEE framework (Jvn framework) to help you:
1. Why should we use the java framework and what benefits can the framework bring.
2. helps you understand the principles of the Framework.
3. How is the framework implemented.
4. How to develop a java framework of your own.
II,
Currently, the developed framework is called the Jvn framework, and the author's name is "Gossip". Let's get started with the development framework.
The Jvn framework has the following features:
1. the mvc Framework, similar to the web framework StringMvc or struts, does not write servlets and does not need to write servlet configurations in web. xml.
2. The orm framework, similar to hibernate or ibatis, is not worrying about complicated jdbc operations.
3. The spring framework, similar to the spring framework, has never worried about bean management;
4. cache mechanism.
5. Regular scheduling.
6. automatically generate online documents.
7. interceptor
III,
Each blog post has a detailed explanation of the video and the corresponding source code, and the video is continuous. To learn how to develop the Jvn framework, we recommend that you start with the first blog post Jvn.
Content of this blog
The method for finding a Bean is described in the previous lesson. This lesson mainly describes how to generate a Bean using parameters transmitted by the browser in the background.
1. First put the parameters passed by the browser into the map key --> value
2. traverse the map and find the key to piece together setXXX.
3. Find all the set methods and simpleName of the Bean to be converted.
4. Use the reflection mechanism to set the value of invoke.
5. Generate a desired object
Video and corresponding Source Code address:
Http://pan.baidu.com/s/1jGBvHeI
Ps: videos and code will be updated continuously. I hope you will like it and support it a lot.
QQ: 245223343 forever brother eight