idea使用的一些问题解决记录

个人记录,方便回顾

IDEA警告:SQL dialect is not configured

Idea能自动给我们检查拼接的sql语句的语法正确性,当然需要进行一定的配置。

在报警告的地方,单击过后,按下快捷键Alt+Enter进入设置,

然后点击Generic,设置其dialect。

例如,将其设置为mysql,那么idea将会按照mysql的语法为开发者检查语法。

junit测试时报No runnable methods错误的解决方法

@Test时import的是@org.testng.annotations.Test所以会报错

解决方法:改为import org.junit.Test;就可以了

IDEA写junit测试用例时报class not found:...empty test suite

重新编译下,再运行或者debug。

maven下可以clean,package,install。

猜你喜欢

转载自blog.csdn.net/modao_/article/details/88992200
今日推荐