当前位置:网站首页>ASP. Net MVC default configuration, if any, jumps to the corresponding program in the specified area
ASP. Net MVC default configuration, if any, jumps to the corresponding program in the specified area
2022-07-02 12:39:00 【Time chaser】
Today, we are building a platform based on MVC Project , Because the project involves mobile phones and pc End , In order to facilitate and reduce the coupling between the two, I am in the area (Areas) Two are established in Program space , Then the problem comes. I want the program to jump to the one I specified by default areas How to do the corresponding project in ? In fact, it is not difficult to understand the principle of routing configuration , Look at my code :
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Defaults", action = "Index", id = UrlParameter.Optional },
namespaces: new string[] { "JTSD_Web.Areas.WebAdmins.Controllers" }
// Specify a namespace to prevent the same controller name from being indistinguishable ( Give priority to default Route configured in , If you don't find it, you'll find it namesapces Medium )
);
}Screenshot of project picture :
summary : Recently, there are too many projects. I always feel that I have no time to blog , In fact, it's all because I'm making excuses for being lazy , There is nothing lazy , Only oneself want to do !
边栏推荐
- AI中台技术调研
- SparkContext: Error initializing SparkContext解决方法
- [ybtoj advanced training guidance] judgment overflow [error]
- 上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
- Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
- 记录一下MySql update会锁定哪些范围的数据
- 2.7 binary tree, post order traversal - [FBI tree]
- JDBC 预防sql注入问题与解决方法[PreparedStatement]
- 线性DP AcWing 896. 最长上升子序列 II
- CDH6之Sqoop添加数据库驱动
猜你喜欢

CDH6之Sqoop添加数据库驱动

VLAN experiment

spfa AcWing 852. spfa判断负环

Rust search server, rust quick service finding tutorial

AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
![[old horse of industrial control] detailed explanation of Siemens PLC TCP protocol](/img/13/9002244555ebe8a61660c2506993fa.png)
[old horse of industrial control] detailed explanation of Siemens PLC TCP protocol

Distributed machine learning framework and high-dimensional real-time recommendation system
![JDBC 预防sql注入问题与解决方法[PreparedStatement]](/img/32/f71f5a31cdf710704267ff100b85d7.png)
JDBC 预防sql注入问题与解决方法[PreparedStatement]

spfa AcWing 851. spfa求最短路

Sort---
随机推荐
drools决策表的简单使用
What data types does redis have and their application scenarios
Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
Leetcode - Sword finger offer 51 Reverse pairs in an array
Go学习笔记—基于Go的进程间通信
drools执行完某个规则后终止别的规则执行
Drools executes string rules or executes a rule file
LeetCode—剑指 Offer 37、38
深拷贝 事件总线
Openssh remote enumeration username vulnerability (cve-2018-15473)
kubeadm join时出现错误:[ERROR Port-10250]: Port 10250 is in use [ERROR FileAvailable--etc-kubernetes-pki
2.6 using recursion and stack - [tower of Hanoi problem]
Deep Copy Event bus
FBX import under ue4/ue5 runtime
[C language] convert decimal numbers to binary numbers
IPhone 6 plus is listed in Apple's "retro products" list
[ybtoj advanced training guidance] cross the river [BFS]
1380. Lucky numbers in the matrix [two-dimensional array, matrix]
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
Dijkstra AcWing 850. Dijkstra求最短路 II