SpringSecurityLoginTutorial
SpringSecurityLoginTutorial copied to clipboard
Error: Column 'role_id' cannot be null
After filling in valid user registration info on the registration page, and pressing "Register User" I get a whitelabel error page with this error message: (type=Internal Server Error, status=500)
Looking at the console output I see this error message: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'role_id' cannot be null
I solved the problem. It seems like insert_roles.sql didn't execute, so I just ran it's containing sql query itself in my database software and it worked.
Does anyone know how to get it to execute off the bat?