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

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LINUX DO - 热门话题
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threat Research - Cisco Blogs
AI
AI
B
Blog RSS Feed
S
Schneier on Security
雷峰网
雷峰网
Schneier on Security
Schneier on Security
Help Net Security
Help Net Security
Cloudbric
Cloudbric
L
LINUX DO - 最新话题
罗磊的独立博客
有赞技术团队
有赞技术团队
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
The Hacker News
The Hacker News
博客园 - Franky
Attack and Defense Labs
Attack and Defense Labs
The Cloudflare Blog
Webroot Blog
Webroot Blog
Last Week in AI
Last Week in AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 叶小钗
美团技术团队
L
Lohrmann on Cybersecurity
T
The Blog of Author Tim Ferriss
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
Know Your Adversary
Know Your Adversary
O
OpenAI News
博客园 - 【当耐特】
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
Cybersecurity and Infrastructure Security Agency CISA
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
www.infosecurity-magazine.com
www.infosecurity-magazine.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
PCI Perspectives
PCI Perspectives
H
Heimdal Security Blog
I
InfoQ
GbyAI
GbyAI
T
Threatpost
C
Cisco Blogs

博客园 - 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的生命周期流程: