但是在spring容器中有实例,springmvc容器中也有controler实例,怀疑是springmvc先加载,如何解决呢?
Creating shared instance of singleton bean 'bookService'
Creating shared instance of singleton bean 'springMvcConfig'
Creating shared instance of singleton bean 'booksController'
Creating shared instance of singleton bean 'bookService'
Creating shared instance of singleton bean 'springMvcConfig'
Creating shared instance of singleton bean 'booksController'