diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..99d00e0
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,15 @@
+[app]
+app_name = false
+app_version = 2.8.14
+app_host = ''
+app_debug = false
+app_trace = false
+
+[database]
+hostname = 127.0.0.1
+database = root
+username = root
+password = root
+hostport = 3306
+prefix = pear_
+debug = true
diff --git a/config/app.php b/config/app.php
index 13e4699..33e6039 100644
--- a/config/app.php
+++ b/config/app.php
@@ -4,15 +4,15 @@ use think\facade\Env;
 
 return [
     // 应用名称
-    'app_name'               => 'pearProject',
+    'app_name'               => Env::get('app.app_name', false),
     // 应用版本
-    'app_version'            => '2.8.14',
+    'app_version'            =>  Env::get('app.app_version', '2.8.14'),
     // 应用地址
-    'app_host'               => '',
+    'app_host'               => Env::get('app.app_host', ''),
     // 应用调试模式
-    'app_debug'              => true,
+    'app_debug'              => Env::get('app.app_debug', false),
     // 应用Trace
-    'app_trace'              => false,
+    'app_trace'              =>Env::get('app.app_trace', false),
     // 是否支持多模块
     'app_multi_module'       => true,
     // 入口自动绑定模块
@@ -63,7 +63,7 @@ return [
     // 操作方法后缀
     'action_suffix'          => '',
     // 自动搜索控制器
-    'controller_auto_search' => false,
+    'controller_auto_search' => true,
 
     // +----------------------------------------------------------------------
     // | URL设置
diff --git a/config/database.php b/config/database.php
index 1af9907..4c47229 100644
--- a/config/database.php
+++ b/config/database.php
@@ -1,29 +1,29 @@
 <?php
-
+use think\facade\Env;
 return [
     // 数据库类型
-    'type'            => 'mysql',
+    'type'            => Env::get('database.type', 'mysql'),
     // 服务器地址
-    'hostname'        => '127.0.0.1',
+    'hostname'        => Env::get('database.hostname', '127.0.0.1'),
     // 数据库名
-    'database'        => 'pearproject',
+    'database'        => Env::get('database.database', 'root'),
     // 用户名
-    'username'        => 'root',
+    'username'        => Env::get('database.username', 'root'),
     // 密码
-    'password'        => 'root',
+    'password'        => Env::get('database.password', 'root'),
 
     // 端口
-    'hostport'        => '',
+    'hostport'        => Env::get('database.hostport', '3306'),
     // 连接dsn
     'dsn'             => '',
     // 数据库连接参数
     'params'          => [],
-    // 数据库编码默认采用utf8
-    'charset'         => 'utf8',
+    // 数据库编码默认采用utf8mb4
+    'charset'         => Env::get('database.charset', 'utf8mb4'),
     // 数据库表前缀
-    'prefix'          => 'pear_',
+    'prefix'          => Env::get('database.prefix', 'sys_'),
     // 数据库调试模式
-    'debug'           => true,
+    'debug'           => Env::get('database.debug', false),
     // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
     'deploy'          => 0,
     // 数据库读写是否分离 主从式有效