com.github.zhengframework.web.WebConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zheng-web Show documentation
Show all versions of zheng-web Show documentation
zheng framework module: web server
package com.github.zhengframework.web;
import com.github.zhengframework.configuration.ConfigurationDefine;
import com.github.zhengframework.configuration.annotation.ConfigurationInfo;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@ToString
@Data
@NoArgsConstructor
@ConfigurationInfo(prefix = "zheng.web")
public class WebConfig implements ConfigurationDefine {
private String contextPath = "/";
private String webSocketPath = "/ws";
private int port = 8080;
private Map properties = new HashMap<>();
public void addProperty(String key, String value) {
properties.put(key, value);
}
}