publicclassAppConfig { @Bean(name ="timedCache") publicTimedCache<String, Muser> listStrBean() { returnnewTimedCache<String, Muser>(30*6000); } } 5 各個常用的注解 5.1 dao @Repository 5.2 model 不需要注解 5.3 restful的controller @RestController 5.4 service service接口處不用,在接口的實(shí)現(xiàn)類處用@...
www.dbjr.com.cn/article/2186...htm 2025-5-31