请问编写完插件后,如何打到nacos-server中
buruoyanyang opened this issue · comments
我这边支持了一下Sqlserver数据源,完成了plugin的编写,是需要将实现复制到nacos/plugin项目中,还是有其他方式?官网说明中是先编译nacos本体,然后install插件就没了。请大佬们赐教~
我在nacos-datasource-plugin module中添加了如下依赖:
com.alibaba.nacos
nacos-postgresql-datasource-plugin-ext
1.0.0-SNAPSHOT
发现不能正常工作,因为在nacos-datasource-plugin模块 ExternalDataSourceProperties里面默认的数据库驱动就是com.mysql.cj.jdbc.Driver
我在nacos-datasource-plugin module中添加了如下依赖: com.alibaba.nacos nacos-postgresql-datasource-plugin-ext 1.0.0-SNAPSHOT 发现不能正常工作,因为在nacos-datasource-plugin模块 ExternalDataSourceProperties里面默认的数据库驱动就是com.mysql.cj.jdbc.Driver
参考下面的文章就可以解决:
https://github.com/nacos-group/nacos-plugin/tree/develop/nacos-datasource-plugin-ext
我这边支持了一下Sqlserver数据源,完成了plugin的编写,是需要将实现复制到nacos/plugin项目中,还是有其他方式?官网说明中是先编译nacos本体,然后install插件就没了。请大佬们赐教~
@buruoyanyang :代码是否可以分享一下呢?感谢。