ASP.NET Coreでのパイプライン設定とサービス構成

以下に、ASP.NET Coreのパイプライン設定と主要なサービス構成方法を紹介します。 MVCオプションの設定 services.Configure<MvcOptions>(options => { options.Filters.Add<GlobalActionFilter>(); options.Filters.Add<GlobalExceptionFilter>(); }); 圧縮機能の設定と追加 services.AddResponseCompression(opts => { opts.Pr ...

5月20日 12:30 投稿

Spring BootとMyBatis-Plusの統合:ModelAndViewとJSPを使用したCRUD操作とページネーション

MyBatisPlusConfig.java package com.example.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.co ...

5月17日 22:58 投稿

.NET 6入門ノート

.NET 6入門 1、ApiControllerAttribute 実際には[ApiController]はApiControllerAttributeクラスであり、角括弧の外側に完全名を記述する必要があり、角括弧内では省略形でよい 2、ApiControllerによるデータソース推論 (0)パラメータアトリビュート(非推奨) .NET Core 3.1以前では、メソッド内で渡されるパラメータが不明な場合、以下のアトリビュートを使用してパ ...

5月17日 05:20 投稿