Giter VIP home page Giter VIP logo

Comments (9)

zccccccc avatar zccccccc commented on July 16, 2024 11

@narakai
resources文件 右键设置文件类型 Mark Directory as ==> Resources ROOT

from vblog.

lenve avatar lenve commented on July 16, 2024

@narakai
看这个提示是数据问题。你从以下几方面来检查下:
1.数据库驱动是否加载到了
2.数据配置是否修改了
3.本地数据库是否可以正常访问

from vblog.

lenve avatar lenve commented on July 16, 2024

@narakai
我刚刚增加了数据库连接池,你重新clone再试下

from vblog.

narakai avatar narakai commented on July 16, 2024

刚试了下,还是报同样的错

我的datasource:数据库可以访问到

spring.datasource.url=jdbc:mysql://localhost:3306/vueblog?useUnicode=true&characterEncoding=UTF-8
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
mybatis.config-location=classpath:/mybatis-config.xml

server.port=8081
logging.level.org.springframework.security=info

from vblog.

lenve avatar lenve commented on July 16, 2024

@narakai
hello,哥们,你的问题解决了吗?

from vblog.

narakai avatar narakai commented on July 16, 2024

@lenve @zccccccc zccccccc这哥们的方法是对的,谢谢,搞了一天...

from vblog.

cqran avatar cqran commented on July 16, 2024

Eclipse的 :项目上右键选择properties,然后点击java build path,添加 source:add folder
把resources 文件夹添加为 资源目录。

from vblog.

Dwannn avatar Dwannn commented on July 16, 2024

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2018-02-01 15:27:48.014 ERROR 7188 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Field userMapper in org.sang.service.UserService required a bean of type 'org.sang.mapper.UserMapper' that could not be found.

Action:

Consider defining a bean of type 'org.sang.mapper.UserMapper' in your configuration.
发现是包有中文名导致的。改完后就遇到@narakai 哥们相同的问题,我的是eclipse,用的是@cqran 提供的方法,成功跑起来。感谢

from vblog.

Starriers avatar Starriers commented on July 16, 2024

无法修改 server.port 而且登录localhost:8080/index.html 需要输入用户名密码

from vblog.

Related Issues (20)

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.