我必须比较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,那么两个方法都会进入.
我开始用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?