java常见异常

1.Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine suitable jdbc url
Action:
Consider the following:
	If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

    解:-Dspring.profiles.active=dev


2.ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/usr/xxx/logs/xxxxx.log,true) call failed. java.io.FileNotFoundException: /usr/xx/logs/xxxx.log(Permission denied)
     解: sudo chown -R  user:staff namespace
         sudo chown -R  user[用户角色]:staff  xxx[文件夹]
展开阅读全文
©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值