Home > Back-end >  For Springmvc can't sweep controller!!!!!
For Springmvc can't sweep controller!!!!!

Time:10-07

I'm doing a paging query unit tests, found PageInfo PI=(PageInfo) request. GetAttribute (" PageInfo "); PI==null
Then the Internet a lot are not solve,
To do a test, need not controlle mapper directly on the unit test, data query returns a
Then I made a output statements in the controller, found no output, is has not entered the controller
Please bosses to help me take a look at what the problem,

directory structure:

spring configuration

for springmvc configuration

web. XML

test

controller:


CodePudding user response:

Junit to mistake is pageInfo null pointer
  • Related