Skip to content

Instantly share code, notes, and snippets.

@matthung0807
Created July 28, 2017 10:30
Show Gist options
  • Save matthung0807/801ea9a63f206dfea37bf7f90ecba0a5 to your computer and use it in GitHub Desktop.
Save matthung0807/801ea9a63f206dfea37bf7f90ecba0a5 to your computer and use it in GitHub Desktop.
嚴重: Servlet.service() for servlet [dispatcher] in context with path [/moneynote] threw exception [Request processing failed; nested exception is org.springframework.dao.DuplicateKeyException: StatementCallback; SQL [INSERT INTO tb_catg VALUES('測試類別001',NOW(),NOW())]; Duplicate entry '測試類別001' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '測試類別001' for key 'PRIMARY'] with root cause
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Duplicate entry '測試類別001' for key 'PRIMARY'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment