|
@@ -28,7 +28,7 @@ import java.util.List;
|
28
|
28
|
import java.util.UUID;
|
29
|
29
|
|
30
|
30
|
@RestController
|
31
|
|
-@RequestMapping("/api")
|
|
31
|
+@RequestMapping("/mydb")
|
32
|
32
|
public class DbController {
|
33
|
33
|
|
34
|
34
|
@PostMapping("/connection")
|
|
@@ -52,7 +52,7 @@ public class DbController {
|
52
|
52
|
|
53
|
53
|
@PostMapping("/create")
|
54
|
54
|
public void create(@RequestBody DbConfig dbConfig, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
|
55
|
|
- String newFileName = "D:/" + UUID.randomUUID().toString().replaceAll("-", "") + "/" + "cj-demo";
|
|
55
|
+ String newFileName = "/home/yansen/generator/temp/" + UUID.randomUUID().toString().replaceAll("-", "") + "/" + "cj-demo";
|
56
|
56
|
dbConfig.getMysqlLib().forEach(e -> {
|
57
|
57
|
AutoGeneratorFile(dbConfig,newFileName,e);
|
58
|
58
|
});
|