Enhance authentication logging and update MyBatis configuration

This commit is contained in:
zyh
2025-08-24 16:52:20 +08:00
parent 51d6319121
commit bc1f10381a
20 changed files with 122 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ spring:
connection-timeout: 30000
mybatis:
mapper-locations: classpath:mapper/*.xml
mapper-locations: classpath:mapper/**/*.xml
type-aliases-package: com.gameplatform.server.model
configuration:
map-underscore-to-camel-case: true
@@ -31,6 +31,9 @@ logging:
level:
root: info
com.gameplatform.server: debug
org.mybatis: debug
org.apache.ibatis: debug
com.zaxxer.hikari: info
security:
jwt:

View File

@@ -21,5 +21,11 @@
AND user_type = #{userType}
LIMIT 1
</select>
</mapper>
<select id="findByUsername" resultMap="UserAccountMap">
SELECT id, user_type, username, display_name, password_hash, role, status, points_balance, created_at, updated_at
FROM user_account
WHERE username = #{username}
LIMIT 1
</select>
</mapper>