Spring Roo 2.0.0.RC1 Security Configuration- adding user and role -
i ran below roo command after adding controller,
security setup
i saw command created couple of tables in mysql database login_role,user_login,user_login_role.
now when starting application on localhost:8080, getting login window , still not able add user or configure security in generated application.
i researched out on topic mentioned configure applicationcontext-security.xml file or securityconfiguration java file. not find of these in application.
please suggest how can authentication in application generated through spring roo 2.0.0.rc1
if uses security setup
command said in description, login_role
, user_login
, user_login_role
tables should not generated. these tables generated if use security setup --provider springlets_jpa
.
check https://docs.spring.io/spring-roo/docs/2.0.0.rc1/reference/html/#security-setup
anyway, if use security setup
command without parameter, should use user
username , should obtain password console log during application deployment. behaviour of default configuration of spring security starter on spring boot applications.
you should check https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-security.html
on other hand, remember spring roo helps configure , maintain project, you're able include code need. in case, need create websecurityconfigureradapter configure users able access application or configure authenticationprovider (in previous configuration class) used authenticate users db, webservice, etc.
hope helps,
Comments
Post a Comment