File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/com/github/davidfantasy/mybatisplus/generatorui/service Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313import com .google .common .collect .Lists ;
1414import com .google .common .io .Files ;
1515import lombok .extern .slf4j .Slf4j ;
16+ import org .springframework .beans .factory .InitializingBean ;
1617import org .springframework .beans .factory .annotation .Autowired ;
1718import org .springframework .stereotype .Component ;
1819import org .springframework .web .multipart .MultipartFile ;
1920
20- import javax .annotation .PostConstruct ;
2121import java .io .ByteArrayInputStream ;
2222import java .io .File ;
2323import java .io .IOException ;
3030
3131@ Component
3232@ Slf4j
33- public class UserConfigStore {
33+ public class UserConfigStore implements InitializingBean {
3434
3535 private String storeDir ;
3636
@@ -42,8 +42,9 @@ public class UserConfigStore {
4242 @ Autowired
4343 private GeneratorConfig generatorConfig ;
4444
45- @ PostConstruct
46- public void init () {
45+
46+ @ Override
47+ public void afterPropertiesSet () throws Exception {
4748 this .storeDir = PathUtil .joinPath (System .getProperty ("user.home" ), CONFIG_HOME , generatorConfig .getBasePackage ());
4849 this .userConfigPath = this .storeDir + File .separator + "user-config.json" ;
4950 }
You can’t perform that action at this time.
0 commit comments