'authorization_code model get a code,how can i set the format and timeout

in springboot , authorization_code model get a code,how can i set the format and timeout For example, I want to adjust the format to a combination of numbers and letters, with a timeout of 1 hour



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source