- 博客(16)
- 资源 (41)
- 收藏
- 关注
原创 ABP【二】
5.新增webapi接口,在.Application项目中新增文件夹和类IMyTestAppService.cs 和 MyTestAppService.cs public interface IMyTestAppService : IApplicationService { string Test(); } class MyTestAppService...
2018-02-28 17:11:34 824
原创 Sprint Boot使用OAuth和JWT实现身份认证【二】
上一篇文章已经实现了自定义获取token方法和自定义过滤器,本篇文章对自定义类进行封装:文件结构:依赖:dependencies { compile('com.github.wenhao:jpa-spec:3.1.1') compile('io.springfox:springfox-swagger2:2.2.2') compile('io.springfox:sp...
2018-02-28 12:00:20 1738
原创 Sprint Boot使用OAuth和JWT实现身份认证【一】
依赖第三方库:compile 'io.jsonwebtoken:jjwt:0.9.0'1.先写个例子用JWT实现获取token和解析tokenpackage com.yf.gyy.OAuthController;import java.util.Date;import java.util.HashMap;import java.util.Map;import org.springfram...
2018-02-27 09:40:51 3112
原创 使用Spring Data JPA操作Mysql
参考:https://www.ibm.com/developerworks/cn/opensource/os-cn-spring-jpa/1.添加依赖:dependencies { compile('io.springfox:springfox-swagger2:2.2.2') compile('io.springfox:springfox-swagger-ui:2.2.2') ...
2018-02-22 15:49:43 1347
原创 Eclipse中对Spring Boot 项目使用Swagger
1.添加swagger依赖:dependencies { compile('io.springfox:springfox-swagger2:2.2.2') compile('io.springfox:springfox-swagger-ui:2.2.2')}2.添加Swagger2Config.java类:package com.yunfeng.YFApiCommon;imp...
2018-02-22 11:46:59 2122
原创 Eclipse 切换 maven为阿里云源
<?xml version="1.0" encoding="UTF-8"?><!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work...
2018-02-22 10:16:26 3006
原创 webapi请求参数长度过大解决方法
【.net framework】【.net core】 ///配置文件大小限制 services.Configure<FormOptions>(options => { options.MultipartBodyLengthLimit = 60000000; ...
2018-02-11 14:57:07 10218 2
原创 Node.js 开发Rest的Api示例项目(二)
app.js'use strict';console.log('Hello world');const Koa = require('koa');const bodyParser = require('koa-bodyparser');const app = new Koa();const controller = require('./controller');// parse ...
2018-02-10 16:42:34 593
原创 Node.js控制台示例项目(一)
////app.js'use strict';console.log('Hello world>>>>>>>>>>>>>>>>>>>>>>>>>&
2018-02-10 16:08:40 910
原创 .Net Framework WebApi使用OAuth2.0
参考资料:https://olepetterdahlmann.com/2016/08/08/implement-an-oauth-2-0-authorization-server-using-owin-oauth-middleware-on-asp-net-web-api/ 1.新建webapi项目,并添加以下三个库引用:Microsoft.AspNet.WebApi.OwinMicro...
2018-02-09 14:15:24 5361 1
原创 .net core webapi 使用Authorize身份认证
1.使用JWT身份认证模式,引入库:IdentityServer4.AccessTokenValidation2.在StartUp.cs中添加加密秘钥串:public static readonly SymmetricSecurityKey symmetricKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes("need_to_get_th...
2018-02-08 12:07:53 16284
原创 java-gps
class run { public static void main(String[] args) { TransGPS trns = new TransGPS(); TransGPS.Location loc = trns.LocationMake(113.234,34.123); loc = trns.transformFromWGSToGCJ(loc); System.o...
2018-02-08 10:19:38 1337
原创 ABP使用.Net Core
参考:https://www.cnblogs.com/donaldtdz/p/8149598.html1.下载模板:https://aspnetboilerplate.com/Templates2.移除默认SQL Server相关包在EntityFrameworkCore项目下移除包Microsoft.EntityFrameworkCore.SqlServer、Microsoft.EntityFr...
2018-02-08 09:28:32 2888
原创 .Net Core使用 Log4Net
public class YFLog { private static log4net.ILog logger = null; public static void logInfo(string logstr) { Console.WriteLine(logstr); if(initLog4ne
2018-02-07 10:22:52 1239
原创 .Net Core控制台应用程序使用定时器
引用两个库:McApp.QuartzCorePomelo.AspNetCore.TimedJobusing Newtonsoft.Json;using Quartz;using Quartz.Impl;using System;using System.Collections.Specialized;using System.Threading.Tasks;n
2018-02-07 09:31:26 8797 2
原创 .net Core WebApi发布到Docker并推送到阿里云容器服务
1.创建.net Core WebApi项目,参看:http://blog.csdn.net/zzzili/article/details/792021572.在Linux系统下安装Docker,参看:http://www.runoob.com/docker/centos-docker-install.html3.将webapi工程发布到本地文件夹,将PublishOu
2018-02-05 15:48:35 2924 1
VC图像显示(BMP/JPG/PNG/GIF)
2012-02-16
DirectShow打开摄像头类(Filter)
2012-02-08
GPS偏移数据库测_火星坐标(IOS版本)
2013-03-19
IOS消息推送
2012-12-19
真实GPS坐标转火星坐标查询数据库(google)
2012-11-19
vc下利用Picture控件实现Png图片按钮(重写CStatic)
2012-03-30
VC中GDI方法在Picture控件中显示PNG、bmp、jpg图片
2012-03-27
vc实现Sqlite数据库(加密DB、内存DB、临时DB)
2012-03-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人