spring boot mongodb connection error

后端 未结 1 854
花落未央
花落未央 2021-01-28 23:11

i try to connect my spring boot application to mongodb, but i get a connection error with the driver class. Here a part of code.

my pom.xml:



        
相关标签:
1条回答
  • 2021-01-28 23:57

    If you really want to use MongoDB with JDBC, you can use UnityJDBC. Follow these steps to add the library to your application: http://www.unityjdbc.com/mongojdbc/mongo_jdbc.php

    I suggest you to follow this guide to access MongoDB data without a JDBC driver: https://spring.io/guides/gs/accessing-data-mongodb/

    0 讨论(0)
提交回复
热议问题