摘要:
做单元测试的时候,报spring boot no tests found with test runner 'JUnit5'。 解决: 将junit5改为junit4就可以顺利测试。 阅读全文
摘要:
如果同时存在application.properties与application.yml,那么SB会如何去读呢? 默认是先读properties的,然后才会去读yaml文件。 以图中有几个配制文件,那么系统会如何去读呢? 1、会先读application.properties,然后如何检测到里面指定 阅读全文
摘要:
lombok自带一个日志注解,在需要输出日志的地方加入@Slf4j就可以。 下面就可以调用log.info('xxx'); error,debug等方法。 那么我们如何才能够将日志文件输出到指定文件呢?这样便于我们查询,万一有错误,如果没有日志文件,那是很糟糕的事。 1、要确保pom.xml里面有这 阅读全文
摘要:
Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intent 阅读全文
摘要:
详细描述: Field xsMapper in com.xxx.controller.XsController required a bean of type 'com.xxx.mapper.XsMapper' that could not be found. The injection point 阅读全文