IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

Mars-xq發表於2018-12-18

專案報錯:

Error parsing HTTP request header
 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens

檢視專案發現 server.port=8888
改為server.port=8080 解決問題

專案報錯:

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'user0_.user_name' in 'field list'

發現bean類(欄位駝峰):

String userName;

資料庫中也是userName
解決:
將資料庫中駝峰格式寫成user_name

相關文章