The security of the database access control needs common used in various modules as a system-level modules. There are two traditional ways to achieve it, the first one is by the way of the component interface call to join the secure access module into each required, and the second one is through the AOP configuration mode. The two ways require developers to write a lot of function code or configuration information. According to the problem of the configuration information for a large quantity of code and the high cost of modify the processing, this paper proposes a visualization of the AOP configuration, access control injection module automatically through Dom4j configuration mode to complete the security access, reduce the configuration information that developers have to written redundancy, as while as make it more flexible to change content.