Springboot configures pits encountered by shiro, records

Since I used springboot for the first time, I didn't know much about the loading method of files. I encountered a simple problem when configuring shiro, but it didn't take a long time to find out that just after configuring shiro, there was no response when I logged in in the browser. I found a lot of information on the Internet, I think there is no problem, and later. . As shown in the figure:


The @Configuration annotation must be added, so that this class will be loaded when the project starts, and the control of shiro login and permissions will be implemented. . . Pay attention to small details

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325485364&siteId=291194637
Recommended