Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0be4291

Browse files
author
wangyuewei
committed
异常问题修改
1 parent 0525f90 commit 0be4291

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎APIJSON.NET/APIJSON.NET/Startup.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
7474
app.UseAuthentication();
7575

7676
app.UseRouting();
77+
app.UseAuthorization();
7778
app.UseStaticFiles();
7879
app.UseCors(_defaultCorsPolicyName);
7980
app.UseSwagger();

‎APIJSON.NET/APIJSON.NET/appsettings.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"ConnectionStrings": {
3-
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite
4-
"ConnectionString": "Server=192.168.2.25;Database=yunwei;Uid=root;Pwd=xmjk;Port=3306;Character Set=utf8;"
3+
"DbType": 1, //0:MySql,1:SqlServer,2:Sqlite
4+
"ConnectionString": "Server=.;Database=Test;Uid=sa;Pwd=sa;"
55
//"ConnectionString": "Server=119.29.9.25;Port=3306;Database=test;Uid=root;Pwd=1q,2w.3e?;CharSet=UTF8;"
66
},
7-
"CorsUrls": "http://localhost:5000,http://localhost5001",
7+
"CorsUrls": "http://localhost:5000,http://localhost:5001",
88
"Authentication": {
99
"JwtBearer": {
1010
"IsEnabled": "true",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /