Douyu is a new basic development platform that is fully developed using the Java language and runs on JVM. In the web layer, douyu completely discards JSP/servlet. In the database access layer, douyu does not rely on any ORM (relational map of images) framework (such as Hibernate ).
Douyu perfectly integrates Java compiler, HTTP server, and MVC,
It almost achieves full ORM automation, and introduces the permission management model at the Java language level.
The Java language compiler built in douyu is based on the openjdk javac Compiler (b60 ),
It has been modified and expanded, and combined with the HTTP server, it can exert powerful power at the Controller layer,
You only need to modify the Java source file and refresh the browser to view the running result,
At the same time, the compiler is also the cornerstone of ORM automation.
The built-in HTTP server of douyu is based on NiO technology,
It was obtained after a drastic transformation of tomcat6 and com.sun.net. httpserver (more than 1300 Java source files in total,
The transformed HTTP server currently only has about 60 source files, and supports http1.0/1.1.
The built-in permission management model of douyu currently includes functional permissions and field permissions,
Function permissions generally correspond to the Action Method in the Controller class. The action method can be associated with the button in the form,
The field permission controls whether fields in the form can be viewed, modified, or hidden.
Douyu's built-in ORM is almost automated. You only need to create a database table (such as pet ),
Configure the database driver in the server configuration file and specify a package name (for example, my. Oracle. Table) for each database ),
Then you can use import my. Oracle. Table. Pet in your Java source file to import the model class pet.
Douyu also supports transactions across multiple databases and savepoint ).
For more information, see: http://blog.csdn.net/goustzhu/archive/2010/08/30/5849648.aspx