在springboot下通过nutz-spring-boot-starter 使用nutz dao json模块,应用启动的时候在打印”Get TypeParams for self “时特别慢,看日志应该是扫描pojo反射识别。不知道为啥特别慢?求问
2021-03-18 11:53:23,949 [main] DEBUG o.n.resource.Scans - [printLocations,527] - Locations count=2 time use 9ms
2021-03-18 11:53:24,093 [main] DEBUG o.n.castor.Castors - [reload,116] - Using 107 castor for Castors
2021-03-18 11:53:24,221 [main] DEBUG o.n.dao.jdbc.Jdbcs - [<clinit>,90] - Jdbcs init complete
2021-03-18 11:53:24,221 [main] INFO o.n.dao.jdbc.Jdbcs - [getExpert,103] - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
2021-03-18 11:53:24,230 [main] DEBUG o.n.d.i.DaoSupport - [setDataSource,190] - select expert : org.nutz.dao.impl.jdbc.oracle.OracleJdbcExpert
2021-03-18 11:53:24,237 [main] DEBUG o.n.d.i.DaoSupport - [invoke,201] - JDBC Driver --> 12.1.0.1.0
2021-03-18 11:53:24,238 [main] DEBUG o.n.d.i.DaoSupport - [invoke,202] - JDBC Name --> Oracle JDBC driver
2021-03-18 11:53:24,238 [main] DEBUG o.n.d.i.DaoSupport - [invoke,204] - JDBC URL --> jdbc:oracle:thin:@172.16.7.80:1521:urpdb
2021-03-18 11:53:24,239 [main] DEBUG o.n.d.i.DaoSupport - [setDataSource,223] - Database info --> ORACLE:[Oracle - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options]
2021-03-18 11:53:24,246 [main] DEBUG o.n.resource.Scans - [scan,280] - Found 0 resource by src( sqls ) , regex( .(sql|sqlx|sqls)$ )
2021-03-18 11:53:24,246 [main] DEBUG o.n.d.i.DaoSupport - [setSqlManager,123] - SqlManager Sql count=0
2021-03-18 11:53:25,010 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Clazz
2021-03-18 11:53:25,035 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.SchoolClass
2021-03-18 11:53:27,100 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.LimitClazz
2021-03-18 11:53:27,614 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Schedule
2021-03-18 11:53:28,106 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.CourseJc
2021-03-18 11:53:28,127 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.SysParam
2021-03-18 11:53:30,388 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Student
2021-03-18 11:53:30,410 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.ElectiveResult
2021-03-18 11:53:31,196 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.StudyResult
2021-03-18 11:53:32,819 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.CourseLevel
2021-03-18 11:53:33,403 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Dict
2021-03-18 11:53:34,026 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.ElectiveBatch
2021-03-18 11:53:34,442 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Faq
2021-03-18 11:53:35,474 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.TrainingCourse
2021-03-18 11:53:35,851 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Contact
2021-03-18 11:53:36,626 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.Teacher
2021-03-18 11:53:36,645 [main] DEBUG o.n.s.EntityService - [<init>,41] - Get TypeParams for self : com.wisedu.xsxk.common.po.CourseGroup