Springboot
韩老九
在有限的生命里,做自己认为有意义的事。
展开
-
SpringBoot ServletInitializer
ServletInitializer这个class是生成springboot web工程中自带的作用:使用外部tomcat (自己配置的tomcat)springboot自身内置了tomcat,如果想用自己配置的tomcat,需要这个类,但不需要任何改动,直接Run As --->Run on Server(注意这个tomcat的不是maven组件,是eclipse或IDE配置...原创 2019-11-07 15:59:25 · 532 阅读 · 1 评论 -
springboot aop
/** * @Component 注解 把切面类加入到IOC容器中 * @Aspect 注解 使之成为切面类 */@Aspect@Componentpublic class WebLogAcpect02 { /** * 定义切入点,切入点为com.example.demo.controller.UserController下的testObject(..)...原创 2019-11-13 23:39:44 · 147 阅读 · 1 评论 -
springboot打包,找不到pojo实体类
修改spring-boot-maven-plugin组件原创 2019-11-26 22:56:54 · 1538 阅读 · 1 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
springboot<!-- 读取其他位置下的文件 --><resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</i...原创 2019-12-20 16:59:12 · 125 阅读 · 1 评论 -
springboot Could not get a resource from the pool 解决
缺少spring前缀,spring可以,但springboot不行,代码不规范,亲人两行泪原创 2020-01-11 17:18:02 · 799 阅读 · 1 评论