小编kro*_*hit的帖子

如何比较两个Qstrings?

我必须比较qt中的两个Qstrings,

说,

Qstring str1="1005",str2="1006";
Run Code Online (Sandbox Code Playgroud)

我试过用,

if(str1==str2){
   return true;
}
Run Code Online (Sandbox Code Playgroud)

&

if(str1.compare(str2)==0)
{
    return true;
}
Run Code Online (Sandbox Code Playgroud)

如果condition&返回true,那么两个方法都会进入.

c++ qstring qt string-comparison

26
推荐指数
3
解决办法
7万
查看次数

驱动程序 com.mysql.cj.jdbc.Driver 声称不接受 jdbcUrl

我开始用springboot开发,卡了2天了。当我启动我的应用程序时,我得到了这条线。

2020-07-08 11:54:46.377 WARN 33224 --- [ task-1] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata : Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jbdc:mysql://localhost:3306/decormoi

I understand, there is a problem with my url which refers to my database, but which one?

PLEASE someone to help me?

mysql spring jdbc spring-jdbc spring-boot

2
推荐指数
1
解决办法
9345
查看次数

标签 统计

c++ ×1

jdbc ×1

mysql ×1

qstring ×1

qt ×1

spring ×1

spring-boot ×1

spring-jdbc ×1

string-comparison ×1