问题:
No SecurityManager accessible to the calling code, either bound to the
org.apache.shiro.util.ThreadContext or as a vm static singleton. This
is an invalid application configuration.
解决:
package com.demengshop;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;
@SpringBootApplication
@Component //在启动类加上这个注解
public class WebApp {
public static void main(String[] args) {
SpringApplication.run(WebApp.class,args);
}
}