Destiny.Lin
8 months ago
15 changed files with 79 additions and 12 deletions
@ -0,0 +1,39 @@
|
||||
package com.fanruan.boot.show; |
||||
|
||||
import com.fanruan.boot.FileServerComponent; |
||||
import com.fanruan.carina.annotions.DependsOn; |
||||
import com.fanruan.carina.annotions.FineComponent; |
||||
import com.fanruan.carina.annotions.Start; |
||||
import com.fanruan.carina.annotions.Stop; |
||||
import com.fanruan.fs.FileServer; |
||||
import com.fr.io.utils.ResourceIOUtils; |
||||
|
||||
/** |
||||
* 设计器文件系统初始化 |
||||
* |
||||
* @author Destiny.Lin |
||||
* @since 11.0 |
||||
* Created on 2024/6/4 |
||||
*/ |
||||
@FineComponent(name = "design_fs") |
||||
@DependsOn(dependencies = {"design_conf_config"}) |
||||
public class DesignFsComponent extends FileServerComponent { |
||||
|
||||
/** |
||||
* start |
||||
*/ |
||||
@Start |
||||
public void start() throws Exception { |
||||
super.start(); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* start |
||||
*/ |
||||
@Stop |
||||
private void stop() { |
||||
ResourceIOUtils.setUnderlying(FileServer.local()); |
||||
ResourceIOUtils.setIsolationMode(true); |
||||
} |
||||
} |
Loading…
Reference in new issue