Guns启动报错

来源:1-6 IDEA部署和导入guns

tldyl

2018-04-14 10:08

com.stylefeng.guns.rest.modular.auth.validator.impl.DbValidator

https://img4.mukewang.com/5ad1615b0001c4a003270118.jpg

这个类它没法注入

还有:MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

我修改了数据源,它怎么还是连不上?

这是我在yml文件中的配置:

dev
  jdbc:mysql://127.0.0.1:3306/guns?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
    root
    
    guns
    log4j,wall,mergeStat

jdbc:mysql://127.0.0.1:3306/guns_flowable?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
      root
      
  dataSourceGuns jdbc:mysql://127.0.0.1:3306/guns_flowable?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
    root
    

info
  debug
  logs/
  guns.log
写回答 关注

2回答

  • 慕村9579493
    2018-10-25 14:50:06

    nested exception is java.io.FileNotFoundException: class path resource [dubbo.properties] cannot be opened because it does not exist

  • tldyl
    2018-04-14 10:13:10

    好了,问题解决了,我把GunsRestApplication看成是GunsApplication了……

基于SpringBoot 十分钟搞定后台管理平台

大道至简之Guns框架介绍,带你领略代码自动生成

42428 学习 · 201 问题

查看课程

相似问题