SSM相关的配置文件模板 mybatis-config.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://myb ...
分类:
其他好文 时间:
2020-06-25 14:02:16
阅读次数:
44
var nationality = HttpContext.Current.Server.MapPath("~/Config/nationality.json"); string[] nationArr; using(StreamReader r=new StreamReader(nationali ...
分类:
Web程序 时间:
2020-06-25 11:39:51
阅读次数:
76
作者简介 Vyacheslav,拥有运维和项目管理经验的软件工程师 这篇文章将承接我此前搭建的本地Docker开发环境,具体步骤已经放在在以下网址: https://github.com/Voronenko/traefik2-compose-template 除了经典的docker化的项目之外,我还 ...
分类:
Web程序 时间:
2020-06-24 19:42:29
阅读次数:
82
背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: Kernel版本:4.14 ARM64处理器,Contex-A53,双核 使用工具:Source Insight 3. ...
分类:
系统相关 时间:
2020-06-24 00:18:13
阅读次数:
104
Python中当我们们打开文本时,通常会是用with语句,with语句允许我们非常方便的使用资源,而不必担心资源没有关闭。with open('/path/filename', 'r') as f: f.read()然而,并不是只有open()函数返回fp对象才能使用 with 语句。实际上,任何对... ...
分类:
编程语言 时间:
2020-06-23 19:35:30
阅读次数:
50
在Shop.Application.Contracts项目中Permissions目录下ShopPermissions定义权限名 namespace Shop.Permissions { public static class ShopPermissions { public const strin ...
分类:
其他好文 时间:
2020-06-21 17:38:32
阅读次数:
129
一、我们创建一个新的android项目来进行演示广播机制中是如何?显示网络状态的。 package com.example.broadcasttest2; import android.app.Activity; import android.content.BroadcastReceiver; i ...
分类:
移动开发 时间:
2020-06-21 09:19:27
阅读次数:
64
Spring 的核心特性是什么?Spring 优点? Spring 的核心是控制反转(IoC)和面向切面(AOP) Spring 优点: 程序员必须掌握的Java 框架,学会之后50k不是问题 (1)方便解耦,简化开发 (高内聚低耦合) Spring 就是一个大工厂(容器),可以将所有对象创建和依赖 ...
分类:
编程语言 时间:
2020-06-20 22:13:13
阅读次数:
55
ServletConfig class <!-- a part of web.xml --> <servlet> <servlet-name>HelloServlet</servlet-name> <servlet-class>com.truman.servlet.HelloServlet</ser ...
分类:
其他好文 时间:
2020-06-20 13:07:29
阅读次数:
51
1.用的是工厂仓储模式 public interface IRepositoryFactory { IRepository<T> CreateRepository<T>(IPreschoolEducationOnlineDBContext dataContext) where T : class; ...