Commit be81194e500daefdd1af12e5d57eaa40d8224805
1 parent
200f421c
1.
Showing
1 changed file
with
7 additions
and
1 deletions
src/main/java/com/bsth/controller/realcontrol/AdminUtilsController.java
| ... | ... | @@ -31,6 +31,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; |
| 31 | 31 | import com.fasterxml.jackson.databind.SerializationFeature; |
| 32 | 32 | import org.slf4j.Logger; |
| 33 | 33 | import org.slf4j.LoggerFactory; |
| 34 | +import org.springframework.beans.factory.InitializingBean; | |
| 34 | 35 | import org.springframework.beans.factory.annotation.Autowired; |
| 35 | 36 | import org.springframework.web.bind.annotation.RequestMapping; |
| 36 | 37 | import org.springframework.web.bind.annotation.RequestParam; |
| ... | ... | @@ -48,7 +49,7 @@ import java.util.Set; |
| 48 | 49 | */ |
| 49 | 50 | @RestController |
| 50 | 51 | @RequestMapping("adminUtils") |
| 51 | -public class AdminUtilsController { | |
| 52 | +public class AdminUtilsController implements InitializingBean { | |
| 52 | 53 | |
| 53 | 54 | |
| 54 | 55 | Logger logger = LoggerFactory.getLogger(this.getClass()); |
| ... | ... | @@ -388,4 +389,9 @@ public class AdminUtilsController { |
| 388 | 389 | |
| 389 | 390 | return "error"; |
| 390 | 391 | } |
| 392 | + | |
| 393 | + @Override | |
| 394 | + public void afterPropertiesSet() throws Exception { | |
| 395 | + reloadAndApplySystemParam(); | |
| 396 | + } | |
| 391 | 397 | } |
| 392 | 398 | \ No newline at end of file | ... | ... |