代码拉取完成,页面将自动刷新
版本查询 https://repo1.maven.org/maven2/net/hserver/plugins/beetlsql/plugins.beetlsql/
当前 3.3
beetlsql 3.4.3-RELEASE
<dependency>
<groupId>net.hserver.plugins.beetlsql</groupId>
<artifactId>plugins.beetlsql</artifactId>
<version>3.3</version>
</dependency>
@BeetlSQL
public interface UserDao2 extends BaseMapper<User> {
@Update
@Sql("update user set age = ? where id = ?")
void update(Integer age,int id);
List<User> select();
}
@Bean
public class UserService {
@Autowired
private UserDao2 userDao2;
@Tx(rollbackFor = ArithmeticException.class,timeoutMillisecond = 1000)
public boolean update() {
System.out.println("我的:"+Thread.currentThread().getName());
userDao2.update(2222, 1);
// System.out.println(1 / 0);
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return false;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。