摘要: 引言:在springboot项目启动时报错,failed to configure a dataSource ‘url’ attribute is not specified and no embeded datasource could be configured.if you want an e 阅读全文
posted @ 2025-01-23 16:47 陆陆无为而治者 阅读(1031) 评论(0) 推荐(0)
摘要: 在MyBatis中,如果你需要在Mapper.xml文件中定义一个update操作,并且这个操作需要传入两个参数,你可以使用几种不同的方法来实现这一点。下面是一些常见的方法:方法1:使用@Param注解在Mapper接口中使用@Param注解来明确参数的名称,然后在XML文件中使用这些名称。Mapp 阅读全文
posted @ 2025-01-23 15:34 陆陆无为而治者 阅读(201) 评论(0) 推荐(0)