我更喜欢为业务逻辑抛出自己的异常.例如,我有一个类com.mine.exception.DuplicateClientException.是否有一些配置我可以关闭打包com.mine.exception包的堆栈跟踪?
就像是:
logging.level.com.mine.exception=OFF
Run Code Online (Sandbox Code Playgroud) 假设我有两个输入字段
<input id='intput1' type='text' />
<input id='intput2' type='text' />
Run Code Online (Sandbox Code Playgroud)
我可以使用 html 5 属性 required 来指定需要 input1 或 input2