【修改】修改启动类名称,修改打包后的jar包名称
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>laws-weilai</finalName>
|
||||
<finalName>laws-nio</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
+3
-3
@@ -19,15 +19,15 @@ import java.net.UnknownHostException;
|
||||
**/
|
||||
@Slf4j
|
||||
@SpringBootApplication
|
||||
public class JeroSystemSingleApplication extends SpringBootServletInitializer {
|
||||
public class LawNioApplication extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(JeroSystemSingleApplication.class);
|
||||
return application.sources(LawNioApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws UnknownHostException {
|
||||
ConfigurableApplicationContext application = SpringApplication.run(JeroSystemSingleApplication.class, args);
|
||||
ConfigurableApplicationContext application = SpringApplication.run(LawNioApplication.class, args);
|
||||
Environment env = application.getEnvironment();
|
||||
String ip = InetAddress.getLocalHost().getHostAddress();
|
||||
String port = env.getProperty("server.port");
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.jero.modules.online.desform.test;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jero.JeroSystemSingleApplication;
|
||||
import com.jero.LawNioApplication;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.system.util.JwtUtil;
|
||||
import com.jero.common.util.RedisUtil;
|
||||
@@ -20,7 +20,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
* 表单设计器 API 接口单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeroSystemSingleApplication.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = LawNioApplication.class)
|
||||
@SuppressWarnings({"FieldCanBeLocal", "SpringJavaAutowiredMembersInspection"})
|
||||
public class DesformApiTest {
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.jero.modules.online.desform.test;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.jero.JeroSystemSingleApplication;
|
||||
import com.jero.LawNioApplication;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.system.util.JwtUtil;
|
||||
import com.jero.common.util.RedisUtil;
|
||||
@@ -20,7 +20,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
||||
* online api online表单单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeroSystemSingleApplication.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = LawNioApplication.class)
|
||||
@SuppressWarnings({"FieldCanBeLocal", "SpringJavaAutowiredMembersInspection"})
|
||||
public class OnlineApiTest {
|
||||
@Autowired
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.jero.modules.system.test;
|
||||
|
||||
import com.jero.JeroSystemSingleApplication;
|
||||
import com.jero.LawNioApplication;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.system.util.JwtUtil;
|
||||
import com.jero.common.util.RedisUtil;
|
||||
@@ -20,7 +20,7 @@ import org.springframework.http.ResponseEntity;
|
||||
* 系统用户单元测试
|
||||
*/
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeroSystemSingleApplication.class)
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = LawNioApplication.class)
|
||||
@SuppressWarnings({"FieldCanBeLocal", "SpringJavaAutowiredMembersInspection"})
|
||||
public class SysUserTest {
|
||||
@Autowired
|
||||
|
||||
+22
-27
@@ -24,17 +24,33 @@ Jero-boot 的前端UI框架,采用前后端分离方案,提供强大代码
|
||||
- [@antv/g2](https://antv.alipay.com/zh-cn/index.html) - Alipay AntV 数据可视化图表
|
||||
- [Viser-vue](https://viserjs.github.io/docs.html#/viser/guide/installation) - antv/g2 封装实现
|
||||
|
||||
#### 代码规范
|
||||
- 代码迁移需要注意
|
||||
|
||||
不重复的代码文件,直接拷贝到对应的目录下;重复文件(主要是配置文件),对比代码后copy/修改代码。
|
||||
|
||||
|
||||
- 代码引入组件相关事项
|
||||
|
||||
|
||||
- 代码规范
|
||||
|
||||
1.命名要有含义,变量命名使用驼峰命名;
|
||||
|
||||
2.每写一个功能需要加上注释;
|
||||
|
||||
3.代码优化,尽量共用
|
||||
|
||||
|
||||
- 新增功能文件创建规范
|
||||
|
||||
1.命名要有含义
|
||||
|
||||
2.新增组件写在components文件里面
|
||||
|
||||
项目下载和运行
|
||||
----
|
||||
|
||||
- 拉取项目代码
|
||||
```bash
|
||||
git clone http://git.hzwlsoft.com/JeroBoot/jero-boot.git
|
||||
cd jero-boot/jero-web
|
||||
```
|
||||
|
||||
- 安装依赖
|
||||
```
|
||||
yarn install
|
||||
@@ -81,27 +97,6 @@ yarn run lint
|
||||
}
|
||||
}
|
||||
```
|
||||
- 代码迁移需要注意
|
||||
|
||||
不重复的代码文件,直接拷贝到对应的目录下;重复文件(主要是配置文件),对比代码后copy/修改代码。
|
||||
|
||||
- 代码引入组件相关事项
|
||||
|
||||
|
||||
- 代码规范
|
||||
|
||||
1.命名要有含义,变量命名使用驼峰命名;
|
||||
|
||||
2.每写一个功能需要加上注释;
|
||||
|
||||
3.代码优化,尽量共用
|
||||
|
||||
- 新增功能文件创建规范
|
||||
|
||||
1.命名要有含义
|
||||
|
||||
2.新增组件写在components文件里面
|
||||
|
||||
|
||||
附属文档
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user