我听到你了 2017-11-16 06:42 采纳率: 100%
浏览 3336
已采纳

打成war包之后 服务器项目访问数据库时链接不上

INFO 2017-11-16 14:38:52,020 org.springframework.context.support.AbstractApplic
ationContext: Refreshing org.springframework.context.support.ClassPathXmlApplica
tionContext@43f2ce33: startup date [Thu Nov 16 14:38:52 CST 2017]; root of conte
xt hierarchy
INFO 2017-11-16 14:38:52,024 org.springframework.beans.factory.xml.XmlBeanDefin
itionReader: Loading XML bean definitions from class path resource [beans.xml]
INFO 2017-11-16 14:38:52,042 org.springframework.context.annotation.ClassPathSc
anningCandidateComponentProvider: JSR-250 'javax.annotation.ManagedBean' found a
nd supported for component scanning
INFO 2017-11-16 14:38:52,122 org.springframework.beans.factory.support.DefaultL
istableBeanFactory: Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@4bdfc749: defining beans [activeNumberC
ontroller,apkController,userController,agencyController,ideaController,myloansCo
ntroller,orderController,pactContoller,signInController,weController,activityCon
troller,classifyController,homeAll,HUController,labelController,messageControlle
r,productController,ruleController,shoppingController,slideShowController,jobInf
oController,mainInfoController,orderBasicInfoController,permitController,saveOrd
er,converController,issueController,iusseUserController,totalController,userBasi
cController,userParticularController,userTrueController,xiaoXiController,org.spr
ingframework.context.annotation.internalConfigurationAnnotationProcessor,org.spr
ingframework.context.annotation.internalAutowiredAnnotationProcessor,org.springf
ramework.context.annotation.internalRequiredAnnotationProcessor,org.springframew
ork.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFa
ctory,dao,upd,utd,converdi,issuedi,totaldi,xiaoxidi,issueuserdi,userService,user
ParticularService,userTrueServiceImpl,convertServiceImpl,issueServiceImpl,totalS
erviceImpl,xiaoXiServiceImpl,issueUserServiceImpl,userdao,apkdao,userServiceImpl
,apkServiceImpl,ssdi,pdi,mdi,sdi,ldi,aidi,tgdi,cdi,hudi,ruledao,ndi,slideShowSer
viceImpl,NewsServiceImpl,productServiceImpl,messageServiceImpl,shoppingServiceIm
pl,labelServiceImpl,activityServiceImpl,tongGaoServiceImpl,classifyServiceImpl,h
omeUtilServiceImpl,ruleServiceImpl,adiiu,idi,wdi,odi,signidi,pactdi,myldi,agency
ServiceImpl,ideaServiceImpl,weServiceImpl,signInServiceImpl,pactServiceImpl,mylo
ansServiceImpl,midi,jidi,obidi,permitdi,mainInfoServiceImpl,jobInfoServiceImpl,o
rderBasicInfoServiceImpl,permitServiceImpl,org.springframework.context.annotatio
n.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of facto
ry hierarchy
INFO 2017-11-16 14:38:52,155 org.springframework.jdbc.datasource.DriverManagerD
ataSource: Loaded JDBC driver: com.mysql.jdbc.Driver
INFO 2017-11-16 14:38:52,454 org.springframework.context.support.AbstractApplic
ationContext: Refreshing org.springframework.context.support.ClassPathXmlApplica
tionContext@d56b5fd: startup date [Thu Nov 16 14:38:52 CST 2017]; root of contex
t hierarchy
INFO 2017-11-16 14:38:52,460 org.springframework.beans.factory.xml.XmlBeanDefin
itionReader: Loading XML bean definitions from class path resource [beans.xml]
INFO 2017-11-16 14:38:52,489 org.springframework.context.annotation.ClassPathSc
anningCandidateComponentProvider: JSR-250 'javax.annotation.ManagedBean' found a
nd supported for component scanning
INFO 2017-11-16 14:38:52,598 org.springframework.beans.factory.support.DefaultL
istableBeanFactory: Pre-instantiating singletons in org.springframework.beans.fa
ctory.support.DefaultListableBeanFactory@1328659d: defining beans [activeNumberC
ontroller,apkController,userController,agencyController,ideaController,myloansCo
ntroller,orderController,pactContoller,signInController,weController,activityCon
troller,classifyController,homeAll,HUController,labelController,messageControlle
r,productController,ruleController,shoppingController,slideShowController,jobInf
oController,mainInfoController,orderBasicInfoController,permitController,saveOrd
er,converController,issueController,iusseUserController,totalController,userBasi
cController,userParticularController,userTrueController,xiaoXiController,org.spr
ingframework.context.annotation.internalConfigurationAnnotationProcessor,org.spr
ingframework.context.annotation.internalAutowiredAnnotationProcessor,org.springf
ramework.context.annotation.internalRequiredAnnotationProcessor,org.springframew
ork.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFa
ctory,dao,upd,utd,converdi,issuedi,totaldi,xiaoxidi,issueuserdi,userService,user
ParticularService,userTrueServiceImpl,convertServiceImpl,issueServiceImpl,totalS
erviceImpl,xiaoXiServiceImpl,issueUserServiceImpl,userdao,apkdao,userServiceImpl
,apkServiceImpl,ssdi,pdi,mdi,sdi,ldi,aidi,tgdi,cdi,hudi,ruledao,ndi,slideShowSer
viceImpl,NewsServiceImpl,productServiceImpl,messageServiceImpl,shoppingServiceIm
pl,labelServiceImpl,activityServiceImpl,tongGaoServiceImpl,classifyServiceImpl,h
omeUtilServiceImpl,ruleServiceImpl,adiiu,idi,wdi,odi,signidi,pactdi,myldi,agency
ServiceImpl,ideaServiceImpl,weServiceImpl,signInServiceImpl,pactServiceImpl,mylo
ansServiceImpl,midi,jidi,obidi,permitdi,mainInfoServiceImpl,jobInfoServiceImpl,o
rderBasicInfoServiceImpl,permitServiceImpl,org.springframework.context.annotatio
n.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of facto
ry hierarchy
INFO 2017-11-16 14:38:52,605 org.springframework.jdbc.datasource.DriverManagerD
ataSource: Loaded JDBC driver: com.mysql.jdbc.Driver

  • 写回答

2条回答 默认 最新

  • wangjinshan2827 2017-11-16 06:47
    关注

    检查 jdbc.properties 文件的配置是否书写正确 其次检车每个配置参数后面有没有空格 如果有空格 当你在每个参数结尾处按右向箭头时 不会换行 而是空一格 如果没有空格 会直接跳到第二行 希望对你有所帮助

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 关于#html5#的问题:H5页面用户手机返回的时候跳转到指定页面例如(语言-javascript)
  • ¥15 无法使用此凭据登录,因为你的域不可用,如何解决?(标签-Windows)
  • ¥15 yolov9的训练时间
  • ¥15 二叉树遍历没有报错但无法正常运行
  • ¥15 在linux系统下vscode运行robocup3d上场球员报错
  • ¥15 Python语言实验
  • ¥15 SAP HANA SQL 增加合计行
  • ¥20 用C#语言解决一个英文打字练习器,有偿
  • ¥15 srs-sip外部服务 webrtc支持H265格式
  • ¥15 在使用abaqus软件中,继承到assembly里的surfaces怎么使用python批量调动