码迷,mamicode.com
首页 >  
搜索关键字:@component @controller @service @repository    ( 41522个结果
git 服务器同步代码错误 error: insufficient permission for adding an object to repository database .git/objects
* branch master -> FETCH_HEAD error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fa ...
分类:数据库   时间:2020-07-18 22:35:47    阅读次数:88
asp.net core 3.1 公共类里获取 HttpContext 的方法
场景: 在开发web项目的时候,写一些通用的公共方法是很常见的操作,而一些关于Http的操作,经常会用到HttpContext这个对象。 若是在Controller里,我们操作就很简单,可以使用注入的方法直接使用:,比如以下代码: public class HomeController : Cont ...
分类:Web程序   时间:2020-07-18 22:26:34    阅读次数:118
asp.net 利用Ajax和Jquery在前台向后台传参数并返回值
方案一 直接调用后台 1 <script src="js/jquery-1.9.1.js" type="text/javascript"></script> 2 3 <script type="text/javascript"> 4 5 $(function () { 6 7 $('#txtUser ...
分类:Web程序   时间:2020-07-18 22:20:28    阅读次数:90
thinkphp传参第一个回应函数
1.Test.php <?php namespace app\sample\controller; class Test { public function hello($id,$name){ echo $id; echo '|'; echo $name."<br>"; return 'hello, ...
分类:Web程序   时间:2020-07-18 19:52:59    阅读次数:76
Centos 7 关于防火墙的命令
有些人安装的linux的系统默认防火墙不是iptables,而是firewall,那就得使用以下方式关闭防火墙了。 >>>关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止 ...
分类:其他好文   时间:2020-07-18 13:42:58    阅读次数:78
java之策略模式
1 //抽象被裝飾者 2 public abstract class Component{ 3 private String lsh="output:";//output:生成流水號 4 public abstract String operation();//抽象方法(包裝) 5 public S ...
分类:编程语言   时间:2020-07-18 13:36:48    阅读次数:80
解决git 出现 Your account has been blocked问题
使用git 出现 Your account has been blocked 无法将本地仓库代码push到远程仓库 GitLab: Your account has been blocked. fatal: Could not read from remote repository. 解决方案如下: ...
分类:其他好文   时间:2020-07-18 11:22:31    阅读次数:313
Helm v3 入门
Helm应用包管理器 为什么需要Helm? K8S上的应用对象,都是由特定的资源描述组成,包括deployment、service等。都保存各自文件中或者集中写到一个配置文件。然后kubectl apply –f 部署。如果应用只由一个或几个这样的服务组成,上面部署方式足够了。而对于一个复杂的应用, ...
分类:其他好文   时间:2020-07-18 11:20:39    阅读次数:98
Area
ASP.NET MVC允许使用 Area(区域)来组织Web应用程序,每个Area代表应用程序的不同功能模块。这对于大的工程非常有用,Area 使每个功能模块都有各自的文件夹,文件夹中有自己的Controller、View和Model,但对于管理也增加了一定的难度。 本文目录 创建Area 右键工程 ...
分类:其他好文   时间:2020-07-18 00:56:27    阅读次数:88
各种报错总结
问题:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 解决:rebuild project 问题:service实现类注入dao失败 解决:dao或者service的配置文 ...
分类:其他好文   时间:2020-07-18 00:41:34    阅读次数:76
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!