小编ach*_*f05的帖子

在"正在更新Maven项目"期间发生内部错误.显示java.lang.NullPointerException

我正在开发一个Java EE Web项目.当我尝试添加依赖项时,会出现此错误消息.我使用Eclipse Kepler.

在"正在更新Maven项目"期间发生内部错误.显示java.lang.NullPointerException

你可以帮帮我吗?谢谢.

在此输入图像描述

eclipse m2eclipse java-ee maven

87
推荐指数
3
解决办法
12万
查看次数

注入自动连接的依赖项失败;

我正在开发一个小型Java EE Hibernate Spring应用程序,并出现错误:
Error creating bean with name 'articleControleur': Injection of autowired dependencies failed;

oct. 26, 2011 3:51:44 PM org.apache.catalina.core.ApplicationContext log
Grave: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleControleur': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.bd.service.ArticleService com.bd.controleur.ArticleControleur.articleService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.bd.service.ArticleService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at …
Run Code Online (Sandbox Code Playgroud)

spring autowired

46
推荐指数
1
解决办法
26万
查看次数

java.lang.ClassNotFoundException:org.springframework.jdbc.datasource.DriverManagerDataSource

我正在使用Hibernate和Spring编写应用程序.但是我遇到以下错误:

nov. 11, 2011 10:32:11 AM org.apache.catalina.core.AprLifecycleListener init
Infos: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\apache-maven-2.2.1\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\Java\jdk1.7.0\jre\bin;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files\Java\jre7\bin;C:\apache-ant-1.8.2\bin;.
nov. 11, 2011 10:32:12 AM org.apache.coyote.AbstractProtocol init
Infos: Initializing ProtocolHandler ["http-bio-8080"]
nov. 11, 2011 10:32:12 AM org.apache.coyote.AbstractProtocol init
Infos: Initializing ProtocolHandler ["ajp-bio-8009"]
nov. 11, 2011 10:32:12 AM org.apache.catalina.startup.Catalina load
Infos: Initialization processed in 769 ms
nov. 11, 2011 10:32:12 AM org.apache.catalina.core.StandardService startInternal …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate

3
推荐指数
2
解决办法
5万
查看次数

我怎样才能得到下个月的壳?

我想使用 shell 脚本获取当前和下个月的数据,我尝试过以下命令:

$ date '+%b'

mar

$ date +"%B %Y" --date="$(date +%Y-%m-15) next month"

March 2018
Run Code Online (Sandbox Code Playgroud)

但它始终只显示当前月份。

如果命令有问题,请帮助我。

linux bash shell date

3
推荐指数
1
解决办法
2441
查看次数

标签 统计

spring ×2

autowired ×1

bash ×1

date ×1

eclipse ×1

hibernate ×1

java ×1

java-ee ×1

linux ×1

m2eclipse ×1

maven ×1

shell ×1