Enhance authentication logging and update MyBatis configuration
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user