摘要:
spring项目一些简单的定时任务可以通过@Schedule注解来实现,具体配置如下 在applicationContext.xml文件中增加配置 1.引入task约束 xmlns:task="http://www.springframework.org/schema/task" 2.schemaL 阅读全文
摘要:
1.在pom文件中加入需要的依赖(mybatis-generator-core) 和 插件(mybatis-generator-maven-plugin) 2.配置自动生成代码的文件 generatorConfig.xml 注意事项: mysql驱动jar包加载,location=“必须是绝对路径” 阅读全文