spring boot
李听到
永远不会晚
展开
-
@PathVariable和@RequestParam 区别
1、当URL指向的是某一具体业务资源(或资源列表),例如博客,用户时,使用@PathVariable2、当URL需要对资源或者资源列表进行过滤,筛选时,用@RequestParam原出处转载 2021-04-20 23:47:00 · 316 阅读 · 0 评论 -
SpringBoot自动装配原理之源码简单溯源分析
从@SpringBootApplication==>@EnableAutoConfiguration==>@Import(AutoConfigurationImportSelector.class)==>AutoConfigurationImportSelector.class==>interface ImportSelector【批量装配】==>selectImports【但是在AutoConfigurationImportSelector中不执行selectIm原创 2021-03-30 01:14:47 · 193 阅读 · 0 评论 -
java.nio.charset.MalformedInputException: Input length = 1
项目中yml配置文件用notepad++打开,编码改成UTF-8 没有boom模式,问题解决。原创 2021-03-16 23:02:44 · 201 阅读 · 0 评论 -
Invalid bound statement (not found): com.example.demo.dao.mapper.clDao.queryAll
spring-boot配置Mybatis的时候总是出现这样的情况。控制台显示错误:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.mapper.clDao.queryAllat org.apache.ibatis.binding.MapperMethodSqlCommand.<init>(MapperMethod.java:235)&原创 2021-03-15 16:19:04 · 1737 阅读 · 0 评论