DncZeus实战开源项目

项目地址: https://gitee.com/rector/DncZeus

DncZeus 项目正常运行之坑

  • 坑1: 出现进程IDxxx无法运行的问题

    • 解决办法: 安装.NET 7框架
  • 坑2: launchSettings.json作如下配置

    {
        "$schema": "http://json.schemastore.org/launchsettings.json",
        "iisSettings": {
            "windowsAuthentication": false,
            "anonymousAuthentication": true,
            "iisExpress": {
                "applicationUrl": "http://localhost:5432",
                "sslPort": 0
            }
        },
        "profiles": {
          "IIS Express": {
            "commandName": "IISExpress",
            "launchBrowser": true,
            //"launchUrl": "api/values",
            "launchUrl": "swagger",
            "environmentVariables": {
              "ASPNETCORE_ENVIRONMENT": "Development"
            }
          },
          "DncZeus.Api": {
            "commandName": "Project",
            "launchBrowser": true,
            //"launchUrl": "api/values",
            "launchUrl": "swagger",
            "applicationUrl": "http://localhost:5432",
            "environmentVariables": {
              "ASPNETCORE_ENVIRONMENT": "Development"
            }
          }
        }
    }
    
  • 坑3: appsettings.json作如下配置

    {
        "AppSettings": {
            "Secret": "0123456789ABCDEF",
            "IsTrialVersion": false
        },
      "ConnectionStrings": {
        //"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DncZeus;Trusted_Connection=True;MultipleActiveResultSets=true",
        "DefaultConnection": "Server=.;Database=DncZeus;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true;",
        "MySQLConnection": "Server=localhost;Database=dnczeus;Uid=root;Pwd=123456;",
        "PGSQLConnection": "Server=192.168.3.24;Database=dnczeus;Uid=postgres;Pwd=postgres;"
    
      },
        "Logging": {
            "IncludeScopes": false,
            "LogLevel": {
                "Default": "Warning"
            }
        },
        "Tokens": {
            "Key": "0123456789ABCDEF",
            "Issuer": "https://codedefault.com"
        },
        "AllowedHosts": "*",
        "AllowedOrigins": "http://localhost:9000",
        "DataProvider": "MSSQL" // 默认是MySQL,改成Sql Server
    }
    
posted @ 2025-12-12 15:23  清安宁  阅读(0)  评论(0)    收藏  举报