Coder Social home page Coder Social logo

Comments (2)

parkt90 avatar parkt90 commented on July 21, 2024

从报错信息上来看,是dis-seckill-goods模块下GoodsServiceApi接口listGoodsVo方法调用的问题。建议查看数据是否能够正常连接和使用

from dis-seckill.

geek-LHW avatar geek-LHW commented on July 21, 2024

我已经解决了这个问题,你可以看一下他数据库的配置(在项目的application.properties文件里),你会发现他的用户名是root,密码是1 …… 所以问题很简单了,你把你的用户名和密码改成这个就行了; 如果你看了他的README.MD文件,里面有写到密码是123,如果你改成了123,那么很显然,会访问不了数据库,自然就超时报错了…

请问这是啥原因呢?seckillController无法注入? ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'seckillController' defined in file [D:\dis-seckill-master\dis-seckill-master\dis-seckill-gateway\target\classes\com\seckill\dis\gateway\seckill\SeckillController.class]: Invocation of init method failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method listGoodsVo in the service com.seckill.dis.common.api.goods.GoodsServiceApi. Tried 3 times of the providers [180.201.4.191:12346] (1/2) from the registry 127.0.0.1:2181 on the consumer 180.201.4.191 using the dubbo version 2.7.1.

from dis-seckill.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.