mongo-template を使用して js ファイルを実行しようとしています。 こちらの StackOverFlow スレッドを参照してください
同じコードベースを使用しようとしていますが、まったく変更はありません。これは私にはうまくいきません。次の行で例外が発生します。
scriptOps.register(new NamedMongoScript("echo", echoScript));
エラー:
org.springframework.core.convert.ConverterNotFoundException: タイプ [org.springframework.data.mongodb.core.script.NamedMongoScript] からタイプ [com.mongodb.DBObject] に変換できるコンバーターが見つかりませんでした
スタックトレースを完了...
org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:313) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:195) at org.springframework.core.convert. support.GenericConversionService.convert(GenericConversionService.java:176) で org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:375) で