---恢复内容开始--- Visual Studio创建一个web项目, 在下一步的时候创建WebAPI项目的时候勾选web API之后,系统会生成一个web项目. 首先看一下webapi的路由配置,在App_start/webapiconfig.cs中,可以看到如下代码: public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes…
[一个工程中使用多个flascc编译出来的swc] 1.如果是swf工程, 工程中同时使用多个flascc编译出来的swc, 可以顺利通过. 2.如果是swc工程, 工程中同时使用多个flascc编译出来的swc,编译报错: Error: the script name ABC0 was used multiple times. 究其原因, 打开一个swc内部的catalog.xml可以看到类似于如下的标签 <script name="ABC0" mod="143640…
PS.在之前的一篇文章中介绍了如何用Visual Studio 2015编译zmq,在编译同解决方案中除了libzmq之外的项目例如inproc_thr时会报错误,具如下: Severity Code Description Project File Line Suppression State Error LNK1181 cannot open input file 'libzmq.lib' inproc_thr E:\zeromq4-1-master\zeromq4-1-master\bui…
重现代码: var dmFoo = new DynamicMethod("Foo", typeof(void), Type.EmptyTypes); var ilFoo = dmFoo.GetILGenerator(); //... var label = ilFoo.DefineLabel(); //... var dmBar = new DynamicMethod("Bar", typeof(void), Type.EmptyTypes); var ilBar…
Spring Boot 2.x 已经发布了很久,现在 Spring Cloud 也发布了 基于 Spring Boot 2.x 的 Finchley 版本,现在一起为项目做一次整体框架升级. 升级前 => 升级后 Spring Boot 1.5.x => Spring Boot 2.0.2 Spring Cloud Edgware SR4 => Spring Cloud Finchley.RELEASE Eureka Server Eureka Server 依赖更新 升级前: <…