
前后端分离
文章平均质量分 70
spt_dream
成功,是不断进步的人生
展开
-
数据库几种常见的driverClassName和url
以下是几种数据库的driverClassName和url的对应的内容的总结复制代码1 # Properties file with JDBC-related settings.2 ##########3 # HSQLDB #4 ##########5 #jdbc.driverClassName=org.hsqldb.jdbcDriver6 #jdbc.url=jdbc:hsqldb:hsql://localhost:9001/bookstore7 #jdbc.username=sa8 #j原创 2021-08-13 11:02:38 · 1681 阅读 · 0 评论 -
2021-03-31关于spring boot自动注入出现Consider defining a bean of type ‘xxx‘ in your configuration问题解决方案
搭建完spring boot的demo后自然要实现自动注入来体现spring ioc的便利了,但是我在实施过程中出现了这么一个问题,见下面,这里找到解决办法记录下来,供遇到同样的问题的同僚参考Description:Field helloService in com.example.demo.service.TestController required a bean of type 'com.example.service.HelloService' that could not be found原创 2021-03-31 09:52:09 · 3637 阅读 · 0 评论 -
IntelliJ Idea解决Could not autowire. No beans of ‘xxxx‘ type found的错误提示
1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of ‘xxxx’ type found的错误提示。但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。但红色的错误提示在有些有强迫症的程序员眼里,多多少少有些不太舒服。2. 原因原因可能有两个,第一个是IntellijIDEA本身工具的问题。第二个便是我们导入@Service包的时候导入包错误造成的 第一种原因,spring auto scan配置,在编辑情况下,无原创 2021-03-30 16:34:37 · 656 阅读 · 0 评论