有时候我们不需要将WebAPI发布到iis上运行,需要将webapi内嵌到cs程序内部,随程序一起启动,其实比较简单,需要一个类,如下 public class Startup { public static HttpSelfHostServer m_serverhost = null; public static void IniWebApi() { HttpSelfHostConfiguration _config = new HttpSelfHostConfiguration("http:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { int s = 0, num = 80; while (s < num) { s++; if(s>40) { break; } if((s%2)==0) { co
下面所有SpringBoot组件整理来自于:https://start.spring.io/,紧随Spring社区的步伐...... Developer Tools Spring Boot DevTools Provides fast application restarts, LiveReload, and configurations for enhanced development experience. 开发时期热部署插件,实现类文件和静态资源文件的热部署 Lombok Java a