::命令前加@符号,表示不显示@后面的命令. @echo off title Open / Close Network ::本地网络适配器名称 set name=以太网 ::查看网络状态,后反向设定 netsh interface show interface "%name%" | findstr "已禁用" >nul 2>nul && ( set state=enabled set msg="网络已启用" ) ||
程序如果长时间不进行数据库操作,那么数据源中的 Connection 很可能已经断开.其原因有可能是防火墙,或者连接的数据库设置的超时时间.这里使用的是 C3P0 连接 oracle 数据库,引起的异常信息为: org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is org.hibernate.Transac
1.命令窗口配置网络连接指定IP netsh interface ip set address "本地连接" static IP地址 子网掩码 默认网关 例:netsh interface ip set address 10.1.1.1 255.255.255.1 10.1.1.123 DNS配置 netsh interface ip set dns name="本地连接" source=static addr=DNS服务器地址 register=PRIMARY v