Spring
潘钟鸣
这个作者很懒,什么都没留下…
展开
-
springboot 依赖集合
<!-- 使用PDF --> <dependency> <groupId>org.xhtmlrenderer</groupId> <artifactId>core-renderer</artifactId> <version>R8</version> </dependency> <dependency> <groupId>com.itextpd.原创 2021-09-30 18:33:28 · 208 阅读 · 0 评论 -
Consider defining a bean of type ‘org.springframework.jms.core.JmsTemplate‘
<dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-pool</artifactId> </dependency> 在 Spring Boot 中,此错误可能是由于使用了 activemq-pool 引起的,在spring-boot-starter-parent 2.1 版本中已放弃支持。它被 pooled-jms 取代.原创 2021-09-18 16:31:56 · 1248 阅读 · 0 评论 -
Springboot配置文件 代码集
#MyBatis 映射文件通配 mybatis.mapper-locations=classpath:mybatis/*.xml #MyBatis 扫描别名包,和注解 @Alias 联用 mybatis.type-aliases-package=com.hansheng.test.pojo #配置 typeHandler 的扫描包 #mybatis.type-handlers-package=com.hansheng.test.typehandler #mybatis.config-location=cl.原创 2021-08-31 17:39:16 · 346 阅读 · 1 评论 -
@value注解取不到值
自定义了一个注解@Action用于Aop拦截,然后@Value注解就得不到值了,把@Action删掉后恢复 @Service public class DemoAnnotationService { @Value("pzm") public String myname; @Action(name="我的名字") public void add(){ System.out.println("这是Annotation"); } } ...原创 2021-03-14 18:50:22 · 267 阅读 · 0 评论