config/src/main/java/org/springframework/security/config/core/userdetails/UserDetailsResourceFactoryBean.java
public static UserDetailsResourceFactoryBean fromString(String users) {
		InMemoryResource resource = new InMemoryResource(users);
		return fromResource(resource);
	}
public static UserDetailsResourceFactoryBean fromString(String users) {
		InMemoryResource resource = new InMemoryResource(users);
		return fromResource(resource);
	}
Creates a UserDetailsResourceFactoryBean with a resource from the provided String

@param users the string representing the users
@return the UserDetailsResourceFactoryBean