Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring mvc @Tcc注解不可用 #34

Closed
jilonghun opened this issue Aug 23, 2018 · 5 comments
Closed

spring mvc @Tcc注解不可用 #34

jilonghun opened this issue Aug 23, 2018 · 5 comments

Comments

@jilonghun
Copy link
Contributor

jilonghun commented Aug 23, 2018

背景:
1、按这个:https://github.com/yu199195/hmily/wiki/Dubbo-User-Guide 要求进行配置完成;
2、项目框架是spring MVC(4.3.7),dubbo(2.5.6);

问题:
1、没有报错信息,进不了@tcc表示的方法,service的句柄正常,但是最后报的是空指针,如果去掉@tcc注解就可以使用
2、AOP已经生效:

image

image

image

@yu199195
Copy link
Member

cxfcontent 为空,检查下,配置启动项,看看

@jilonghun
Copy link
Contributor Author

HmilyTransactionBootstrap启动对象,怎么配置都不加载,是什么情况

@yu199195
Copy link
Member

他就是spring 的一个bean 看下demo 有xml 方式 yml 配置方式, 有springboot starter 方式

@jilonghun
Copy link
Contributor Author

jilonghun commented Aug 27, 2018

问题原因已经找到,这个是由于bean的加载方式导致的,我配置的是延迟初始化,配置成启动时加载即可。
image

@yu199195
Copy link
Member

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants