会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
boliao
博客园
首页
新随笔
联系
订阅
管理
2021年12月9日
The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)
摘要: 多个模块实现同一个service时,其中有模块不需要实现这个service,注入时可以用@Autowired(required = false)
阅读全文
posted @ 2021-12-09 14:55 boliao
阅读(7118)
评论(0)
推荐(1)
2021年8月13日
vue 页面内路由跳转
摘要: router.push({ name: 'user', params: { userId: 123 }})name: 路由名
阅读全文
posted @ 2021-08-13 11:39 boliao
阅读(135)
评论(0)
推荐(0)
vue使用axios请求数据获取返回值时,如果或取到了数据但不是json数据
摘要: 可能是后台数据转换时数据类型不一致导致的
阅读全文
posted @ 2021-08-13 10:18 boliao
阅读(552)
评论(0)
推荐(0)
2021年8月9日
使用切面注解 controller类注入service为null
摘要: AOP切面编程,默认就是用了ciglib的动态代理。其中代理类中的ciglib方法只能构建父类的非private方法,controller中的private对象和方法,是无法被动态代理继承的。所以AOP切入的controller中接口是必须要声明为public的。
阅读全文
posted @ 2021-08-09 16:51 boliao
阅读(493)
评论(0)
推荐(0)