customUserService
在编写customUserService类并运行程序的时候,遇到了错误:
The bean 'customUserService', defined in class path resource [com/example/demo/security/WebSecurityConfig.class], could not be registered. A bean with that name has already been defined in file [~/IdeaProjects/my-spring-boot/target/classes/com/example/demo/service/CustomUserService.class] and overriding is disabled.
解决办法:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
MongoDB 客户端
在《第 13 章 集成 MongoDB 数据库》中,作者介绍了MongoDB 客户端NoSQL Manager for MongoDB
,但是这个软件只支持windows。
网上有热心人士推荐了mac compass
,个人觉得还不错。
另外MongoDB默认连接字符串:
mongodb://localhost
网友评论