请问我可以配置我的身份验证提供者spring security ..让他连接到我自己的表用户
CREATE TABLE users
(
id serial NOT NULL,
username character varying(50) NOT NULL,
"password" character varying(50) NOT NULL,
enabled boolean NOT NULL,
authority character varying(50) NOT NULL,
CONSTRAINT users_pkey PRIMARY KEY (id),
CONSTRAINT users_username_key UNIQUE (username)
)
它不起作用,我不知道为什么!
<sec:authentication-provider>
<sec:jdbc-user-service data-source-ref="DataSource"
users-by-username-query="select username,password, enabled from users where username=?" authorities-by-username-query="select username, authority from users where username =?" />
</sec:authentication-provider>