The dynamic proxy and classes include a simple implementation


Dynamic Proxy DAO and its class have a simple implementation

1. Project Reference

Second, the mybatis-config.xml configuration file

    <!--<mapper resource="com/wj/mapper/UserMapper.xml"/>-->
    <package name="com.wj.mapper"></package>

3. DB.Properties configuration file
jdbc.driver = com.mysql.jdbc.Driver
jdbc. username = root
jdbc. password = root

Four, burst bag

5. Map Designer Bag

6. Service Pack

7. Util package

8. Test bag

Leave a Comment