Grails 2 can't login with spring security when using multiple databases
问题 On Grails 2.0.3, I installed Spring Security Core and created the User, UserRole and Role objects as per the tutorial: http://blog.springsource.org/2010/08/11/simplified-spring-security-with-grails/ All went fine until I decided to add a second datasource in preparation for accessing objects from a different database. DataSource.groovy looks like this: test { dataSource_product { dbCreate = "update" url = "jdbc:mysql://localhost/products" pooled = true driverClassName = "com.mysql.jdbc.Driver