惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS Blog

博客园 - 12不懂3

IOC容器 分布式锁 分布式事务 Myql索引篇+c#性能优化篇 jwt验证机制 HttpHelper .net7.0 .net升级7.0报错1. MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse 2.SqlSugar.SqlSugarException: Cannot Open when State is Connecting. 3.The current TransactScope is already complete Windos Elastocsearch安装部署汉化 Mysql ElasticSearch C# Common中心目录 原书籍《Effective C#:改善C#代码的50个有效方法》 精炼18点 ABP IO读写+Epoll多路复用,计算机底层解析 c# 技术点总结 kuberspere管理工具+k8s安装 K8s核心组件理解 数据库事务和锁
ABP.VNET
12不懂3 · 2022-10-09 · via 博客园 - 12不懂3

官网文档中心地址:https://docs.abp.io/zh-Hans/abp/latest/

ABP问题汇总

1.官网下载之后 选择好数据库链接 打开项目报错:Volo.Abp.AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'LeptonXLite.Global'!

解决方案:1.先下载 https://nodejs.org/en/download/ 2.在当前文件目录执行如下命令 abp install-libs 然后重新生成打开就可以

2.运行ABP项目报错:【.net core web api启动报错 Could not find singletion service:Volo.Abp.Modularity.ImodeleContainer,Volo.Abp.Core,Version=6.0.0.0】

  
在API层加了全局配置不生效 需要在 APPlication层增加不适用ABP的类
public class ABPTemplateApiModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { //Json格式化全局处理 context.Services.Configure<MvcNewtonsoftJsonOptions>(options => { options.SerializerSettings.ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver();//.DefaultContractResolver(); options.SerializerSettings.Converters.Add(new DateTimeJsonConverter("yyyy-MM-dd HH:mm:ss")); options.SerializerSettings.Converters.Add(new LongJsonConverter()); });
解决方案如下 增加代码:

public override void ConfigureServices(ServiceConfigurationContext context)
{

PreConfigure<AbpJsonOptions>(options =>
{
options.UseHybridSerializer = false;
});

}

理解ABP.vnet=什么叫做模块化框架

1. 零件-class(最小)  2.组件-dll(由class组成的类库)  3.由类库结合成模块如用户管理模块 在abo中一个模块就是一个项目  4.微服务完整业务的功能体  5.单体项目比微服务更复杂点

2.模块化就是像积木拼接一样 复用基础能力 区分 通用类库模块和业务功能模块

3.积木要能组装 就必须的有标准接口  这就是AbpModule-每个类库都得有一个 AbpModule

4.核心就是三件事:1模块化依赖 Dependon(typeof(类)) 2配置DI ConfigureService  3.初始化

 

AbpModule的生命周期流程: