0
我有這樣的情況。Spring Boot MongoDB連接bean
我使用Spring 1.3.2開機,我已經在我的電腦安裝 MongoDB的我已經加入依賴
org.springframework.boot:spring-boot-starter-data-mongodb
當我運行我的Web應用程序,數據庫連接會自動開始工作。
我沒有配置一個東西。
現在我想連接的Spring Security這樣的:
@Override
protected void configure(AuthenticationManagerBuilder auth)
throws Exception {
auth
.jdbcAuthentication()
.dataSource(dataSource);
}
我的問題是春季啓動數據源是什麼默認的bean的名字,我可以重寫呢?