2018年5月31日

摘要: 1.项目路径resource下都是存放静态资源,static可存放图片,templates则是存放html模板,模板修改之后需重启服务器才能生效 2.模板必须放在templates下并且引入,pom中引入 <dependency><groupId>org.springframework.boot</ 阅读全文

posted @ 2018-05-31 14:37 李太阳 阅读(1143) 评论(0) 推荐(0) 编辑

摘要: 1.在pom中引入 <!-- redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> <version>1.4.5.RE 阅读全文

posted @ 2018-05-31 14:30 李太阳 阅读(229) 评论(0) 推荐(0) 编辑

摘要: 定时任务只需要在application上加上注解EnableScheduling即可开启 编写定时任务 阅读全文

posted @ 2018-05-31 14:28 李太阳 阅读(175) 评论(0) 推荐(0) 编辑

摘要: 1.在配置中添加数据库信息 2.在pom中引入 其中hsldb和jpa是使我们使用数据库更快捷更优雅的模块 3.jpa的使用 4.jdbcTemplate的使用 阅读全文

posted @ 2018-05-31 14:26 李太阳 阅读(84) 评论(0) 推荐(0) 编辑

摘要: 寄语:springBoot这一系列文章是我自己在学习的时候摘抄,总结的,参考的是码云的程序猿DD,他的博客是:http://blog.didispace.com/springbootproperties,感谢他的分享! 1.访问:http://start.spring.io/,生成一个基础sprin 阅读全文

posted @ 2018-05-31 14:19 李太阳 阅读(104) 评论(0) 推荐(0) 编辑