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
kotlin使用@Autowired注解编译不通过 #6
Labels
Comments
Kotlin与Java互调时,默认会将类封装并生成getter/setter方法,并将原变量至为不可访问。 有两种写法可以解决:
或者
|
我也遇到了 不兼容的类型: NonExistentClass无法转换为Annotation @error.NonExistentClass() |
参考
|
刚发现可能是你们迁移工具有点瑕疵,@Autowired阿里的引用包未删除导致的 |
是的,这个问题已经修复了,预计在国庆后发布新版本的迁移工具。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Autowired
var uid: Int?=null
The text was updated successfully, but these errors were encountered: