# springboot-samples **Repository Path**: nikolz/springboot-samples ## Basic Information - **Project Name**: springboot-samples - **Description**: springboot学习 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-03-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #springboot samples ###代码框架 > springboot + mybatis + mysql + redis > 使用tk.mybatis插件 分页插件:pagehelper >学习资料 [Spring Boot 从入门到进阶系列教程](http://www.spring4all.com/article/246) [Spring Boot入门到实战系列教程](http://www.spring4all.com/article/766) + 使用yml格式配置文件 > `application.yml` + 整合mybatis + pageHelper分页 > com.iphotowalking.samples.web.UserController + 整合redis + 使用RestTemplate > 替代 httpclient 例见: `com.iphotowalking.samples.web.TestController.testRest` + Maven管理 SpringBoot Profile > 打包命令:$ mvn clean package -Dmaven.test.skip=true -Pdev > 上面的命令会根据Maven Profile的 dev构建环境包,如果需要prod包,则把-P的参数替换成prod即可。 + apidocs > 文档:http://apidocjs.com/#getting-started > + 安装 npm install apidoc -g > + 运行 apidoc -i src/ -o apidoc/ + maven 启动 热部署 > maven springloaded插件 `` ` org.springframework.boot ` ` spring-boot-maven-plugin` ` ` > 启动命令 $ mvn clean spring-boot:run