摘要:
查询A表中id的值相同的数据 select * from A a where exists (select id from A where id=a.id group by id having count(*)>1) ORDER BY id 阅读全文
摘要:
FreeMarker支持多种模板装载方法 1、使用word2003把自己需要导出word模版 模版创建好,另存为xml格式,勾选仅保存数据。弹出提示点击“保存wordXML格式”。 可以看到xml文件,使用文本编辑器打开 <#list newsList as user> 其中 list 是一个集合 阅读全文
摘要:
通过下列语句查询event是否开启 show variables like '%sche%'; 通过执行下列语句,来开启event_schedulerset global event_scheduler =1; 或者 set global event_scheduler=on; 阅读全文
摘要:
spring-mybatis.xml中 配置了 spring-mvc.xml中配置了 开启了自动扫描,发现service层并不能回滚。 在spring-mvc.xml添加 此为:扫描所有的controller 但是不扫描service 这样service层就能自动开启事务了 但是这样有个问题,ser 阅读全文