随笔分类 - SpringBoot
Spring Boot 可以轻松创建可以“直接运行”的独立的、生产级的基于 Spring 的应用程序
IllegalStateException: Property 'configuration' and 'configLocation' can not specified with together
摘要:SpringBoot + Mybatis 配置遇到的错误 错误日志 Caused by: java.lang.IllegalStateException: Property 'configuration' and 'configLocation' can not specified with tog
阅读全文
摘要:SpringBoot + Mybatis 配置遇到的错误 错误日志 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xm.springboot.mapper.EmployeeMa
阅读全文
摘要:一、简要说明 如何实现网上文章基本是随便一搜就可以很快找到, 这里不再赘述. 二、Spring web和Spring webmvc 通过idea查看到两个注解位于 包内,. 而这里maven依赖有spring web 和spring webmvc 两个包; 查询到spring web主要提供了HTT
阅读全文
摘要:缓存配置 通过@EnableCaching 注释启用了缓存支持(@SpringBootApplication类中) 配置缓存 参考文档 "33. Caching" "spring framework 5.x 8. Cache Abstraction" "SpringBoot手动使用EhCache"
阅读全文
摘要:一、JdbcTemplate 二、Spring data jpa 1. 实体类 2. 继承JpaRepository 的接口,来访问数据库 3. [30.3 JPA and Spring Data JPA ](https://docs.spring.io/spring boot/docs/curre
阅读全文
摘要:参考 文档: "28.4 Embedded Servlet Container Support"
阅读全文
摘要:统一异常处理 SpringBoot的默认映射 码云: "commit: 统一异常处理+返回JSON格式+favicon.ico" 文档: "28.1.11 Error Handling" 参考 文档: "28. Developing Web Applications" "Spring Boot中We
阅读全文
摘要:1 日志格式 2 控制台输出 3 文件输出 4 日志级别 5 日志组 6 自定义日志配置 7 Logback 扩展 参考 文档: "26. Logging"
阅读全文
摘要:参考 文档: "SpringApplication"
阅读全文
摘要:可以使用属性文件,YAML文件,环境变量和命令行参数来外部化配置 一、属性值可以直接注入到bean 系统属性值不可以 // application.properties name=xiaoming server.port=80 import org.springframework.stereotyp
阅读全文
摘要:环境: IDEA 2018.1.3 , jdk 1.8 , maven 3.3.9 零 第一次接触springboot, 如何学习比较困惑, 思前想后最后决定从文档来学习, 以下为学习中的参考资料: 1. 官方手册: "Spring Boot Reference Guide" 脉络比较清晰, 给了学
阅读全文

浙公网安备 33010602011771号