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

打成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条)

报告相同问题?

悬赏问题

  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图2.0 版本点聚合中Marker的位置无法实时更新,如何解决呢?
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题