下载按钮:<buttonclass="layui-btnlayui-btn-sm"data-type="downTemplate">模板下载</button>对应方法:downTemplate:function(){window.open(ctx+"/download/template/customer");},java控制层:importorg.apache.common
分类:
编程语言 时间:
2020-05-20 09:21:18
阅读次数:
54
org.hibernate.AnnotationException: No identifier specified for entity: com.along.entity.emp 你是否也像我一样,因为注释的包错误,而找了近两个小时的程序问题呢 原因: 没有给实体类ID 解决方案: 加入@Id注 ...
分类:
Web程序 时间:
2020-05-19 20:47:44
阅读次数:
59
System.Web.Mvc.ViewPage<dynamic>//这句不清楚到底有没有用,反正我没用到 public ActionResult Index() { IDictionary<string, object> entity = new Dictionary<string, object> ...
分类:
Web程序 时间:
2020-05-19 15:07:06
阅读次数:
78
Optimally Configuring Entity Framework Core Lets talk about configuring your Entity Framework Core DbContext for a moment. There are several options y ...
分类:
其他好文 时间:
2020-05-19 12:52:31
阅读次数:
104
public static System.Xml.Linq.XElement Post(HttpClient _myhttp, string url, XmlDocument doc) { HttpContent content = new StringContent(doc.InnerXml, E ...
分类:
Web程序 时间:
2020-05-19 10:32:19
阅读次数:
77
添加命名空间System.Runtime.Serialization; /* * 系统名称 :工业自动化系统 * 子系统名称:工业相机识码子系统 * 功能模块名:Entity模板 * 类名 :Emodel * 概要 :Entity标准模板 * * 改版履历 * Ver 日期 单位?姓名 概要 * 1 ...
分类:
其他好文 时间:
2020-05-19 01:11:16
阅读次数:
51
<!-- 自动生成代码配置根据数据表自动生成dao,mapper,entity层 1.配置依赖的jar包 mybatis-generator-core 2.配置文件 3.配置插件,在pom中 4.执行插件生成代码,在右边栏maven中-->1.在pom文件中配置需要的jar包 <!--mybatis ...
分类:
其他好文 时间:
2020-05-19 00:47:55
阅读次数:
63
一、简介 1.1 MyBatis Generator介绍 MyBatis Generator 是MyBatis 官方出品的一款,用来自动生成MyBatis的 mapper、dao、entity 的框架,让我们省去规律性最强的一部分最基础的代码编写。 1.2 MyBatis Generator使用 M ...
分类:
编程语言 时间:
2020-05-18 22:23:23
阅读次数:
53
首先创建一个mvc项目 这里注意如果没这个包(LINQ to SQL 类)的话,那就是你安装vs的时候没有安装需要去修改找到这个文件安装一下 添加之后 就可以开始连接数据库了 选择你需要连接的数据库 然后吧表拖到dbml 然后添加控制器 我在控制器里写了一个方法 例子,这个时候还需要去配置连接字符串 ...
分类:
数据库 时间:
2020-05-18 18:22:31
阅读次数:
82
原文:一步一步学习IdentityServer4 (6) Connect-OpenId Cookies SignIn SignOut 那些事 先来看下下面的配置: JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); services... ...
分类:
其他好文 时间:
2020-05-18 00:31:45
阅读次数:
76