Spring 配置了一个定时器
在启动项目时,debug模式的时候报下面的错误,但是不影响功能正常使用,goolge了一下,在stackflow上发先了一个同样的问题,有人回答是这样:
There is noerror. Only a stack trace at debug level where Spring is trying to locate theright constructor for the login success handler (the default has 2 constructorsand only one will match the String provided as an argument, i.e. "/admin/login").You can ignore it or you can switch it off (debug logging at that level is notoften very helpful, and you probably wouldn't want it on in production).希望能给大家帮助
2014-11-20 17:40:43,093 DEBUG[org.springframework.beans.TypeConverterDelegate] - No String constructor foundon type [java.lang.reflect.Method]
java.lang.NoSuchMethodException:java.lang.reflect.Method.
atjava.lang.Class.getConstructor0(Class.java:2810)
atjava.lang.Class.getConstructor(Class.java:1718)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:197)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:92)
atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
atorg.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:686)
atorg.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
atorg.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:744)
2014-11-20 17:40:43,093 DEBUG[org.springframework.beans.TypeConverterDelegate] - Field [wxDealPayResultTask]isn't an enum value
java.lang.NoSuchFieldException: wxDealPayResultTask
atjava.lang.Class.getField(Class.java:1579)
atorg.springframework.beans.TypeConverterDelegate.attemptToConvertStringToEnum(TypeConverterDelegate.java:290)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:218)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:92)
atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
atorg.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:686)
atorg.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
atorg.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:744)