Update spring_boot_features.md

master
qibaoguang 2015-02-09 00:33:04 +08:00
parent c65e651d24
commit bedfeb745c
1 changed files with 1 additions and 1 deletions

View File

@ -944,7 +944,7 @@ public class MyBean {
你可以注入一个自动配置的`org.springframework.data.mongodb.MongoDbFactory`来访问Mongo数据库。默认情况下该实例将尝试使用URL`mongodb://localhost/test`连接一个MongoDB服务器。
```java
import org.springframework.data.mongodb.MongoDbFactory;
import import com.mongodb.DB;
import com.mongodb.DB;
@Component
public class MyBean {