- 博客(8)
- 收藏
- 关注
原创 service 文件执行命令工作目录设置
在service文件中[Service]下 设置 WorkingDirectory=/usr/loca/ 启动路径就是 usr/local/如果启动的进程在工作进程杀死后仍然运行设置 KillMode=process
2022-01-24 13:42:38 3708
原创 2021-08-17
hype-v 安装 虚拟机 连接wifihype-v 安装虚拟机 是无法通过wifi上网的,可以通过vmware 创建虚机网络,再用hype-v连接vmware的续集网络,可以实现虚拟机上网。
2021-08-17 18:55:01 312
原创 linux静态配置IP地址
1、使用 ifconfig 查看网卡名称2、配置,如:配置网卡 ens33,编辑或创建文件创建 /etc/sysconfig/network-script/ifcfg-ens33DEVICE="eth0" //网卡设备名 BOOTPROTO="static" //分配IP地址的方法,dhcp-动态分配,static静态分配,noneHWADDR="00:0C:29:21:80:AB" ...
2021-07-23 16:35:52 125
原创 读取 properties
InputStream is = ;Properteis properties = new Properteis()properteis.load(is);Yaml yaml = new Yaml();yaml.load(is)
2021-06-22 17:31:15 104
原创 获取资源路径
resource 下 setting.properties1、new FileInputStream(setting.properteis)2、class.ClassLoader().getResourceAsStream(setting.properteis)3、new ClassPathResource().getInputStream(setting.properteis);
2021-06-22 17:28:46 2208
原创 springboot读取properties
1、@Component@ConfigurationProperties(prefix = "com.yu.springboot")@PropertySource("classpath:settingconfig.properties")public class PropertiesLoadConfig { private String author; public String getAuthor() { return author; } .
2021-06-17 23:43:17 128
原创 servlt请求
1、创建servlt项目和文件HelloController@WebServlet(urlPatterns = "/hello")public class HelloController extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
2020-07-17 17:03:12 90
原创 idea 搭建servlt项目
1、创建项目 Java Enterprise -> Web Application2、编写servlt,拦截请求3、运行
2020-07-15 11:33:26 87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人