运行我的第一个控制器方法后,编译器显示错误

时间:2019-05-18 20:34:20

标签: spring-mvc

我对Spring MVC很陌生。配置webMVC项目后,我第一次通过spring-tool-suite在窗口上运行Maven Web项目以进行蚀时会出现此错误。

COMPILLER CONSOLE:

  

线程“ main”中的异常java.lang.NullPointerException在   org.springframework.core.BridgeMethodResolver.findBridgedMethod(BridgeMethodResolver.java:64)     在   org.springframework.beans.GenericTypeAwarePropertyDescriptor。(GenericTypeAwarePropertyDescriptor.java:70)     在   org.springframework.beans.CachedIntrospectionResults.buildGenericTypeAwarePropertyDescriptor(CachedIntrospectionResults.java:366)     在   org.springframework.beans.CachedIntrospectionResults。(CachedIntrospectionResults.java:302)     在   org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189)     在   org.springframework.beans.BeanUtils.getPropertyDescriptors(BeanUtils.java:354)     在   org.springframework.boot.bind.PropertiesConfigurationFactory.getNames(PropertiesConfigurationFactory.java:300)     在   org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:283)     在   org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:256)     在   org.springframework.boot.context.config.ConfigFileApplicationListener.bindToSpringApplication(ConfigFileApplicationListener.java:232)     在   org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:183)     在   org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:168)     在   org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:154)     在   org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)     在   org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)     在   org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)     在   org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:68)     在   org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)     在   org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:337)     在   org.springframework.boot.SpringApplication.run(SpringApplication.java:308)     在   org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)     在   org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)     在com.nnokox.Application.main(Application.java:25)

0 个答案:

没有答案