spring
椰果?
这个作者很懒,什么都没留下…
展开
-
jaspersoft生成的报表无法显示中文
前情提要 jaspersoft生成报表时已经将字体设为“华文宋体” 已经导入华文宋体的字体库stsong.ttf,和字体模板 fonts.xml <?xml version="1.0" encoding="UTF-8"?> <fontFamilies> <fontFamily name="华文宋体"> <normal>stsong/stsong.ttf</normal> <bold>stsong/原创 2020-10-31 10:22:40 · 525 阅读 · 0 评论 -
Null return value from advice does not match primitive return type for
1.报错信息 Exception in thread “main” org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type for: public abstract int com.ldy.service.UserService.save(int,int) at org.springframework.aop.framework.Jdk原创 2020-10-08 15:49:58 · 482 阅读 · 0 评论 -
spring常用注解
注解 注解驱动: 利用spring提供的注解替代掉xml文件中做的配置,干的活都是一样的 1.bean的定义 @Controller:一边用于表现层注解 @Service:一般用于业务层注解 @Repository:一般用于持久层注解 @Component:用于其他 作用:设置***该类***为spring管理的bean 相关属性:value:定义bean的访问id 示例: @Component public class user{} 2.bean的作用域 @Scope:设置该类作为bean对应的scope原创 2020-09-30 14:22:16 · 185 阅读 · 0 评论 -
报错:Mapped Statements collection already contains value for com.itheima.dao.
报错:Mapped Statements collection already contains value for com.itheima.dao. AccountDao.update. please check com/itheima/dao/AccountDao.xml and com/itheima/dao/AccountDao.java (best guess) 在使用注解的同时,也写了xml配置文件,删除其中一个即可 ...原创 2020-09-29 20:03:10 · 405 阅读 · 1 评论