异常处理

    2.配置能被swoft扫描到

    1. return [
    2. 'version' => '1.0',
    3. 'App\Commands',
    4. ],
    5. 'beanScan' => [
    6. 'App\Controllers',
    7. 'App\Models',
    8. 'App\Exception',
    9. ],
    10. 'env' => 'Base',
    11. 'db' => require __DIR__ . DS . 'db.php',
    12. 'cache' => require __DIR__ . DS . 'cache.php',