Tax-demo
来自ling
目录
说明
https://cnbejtaxsql01/demo/tax-demo.git
http://10.172.64.204:8888/dms/#/login
11023
目录结构及其文件说明
tax-demo\pom.xml
tax-demo\.gitignore
tax-demo\tax-demo-biz\pom.xml
tax-demo\tax-demo-biz\src\main\resources\bootstrap.yml
tax-demo\tax-demo-biz\src\main\resources\logback-spring.xml
tax-demo\tax-demo-biz\src\main\resources\META-INF\spring.factories
tax-demo\tax-demo-biz\src\main\java\com\deloitte\atrapa\tax\efiling\DemoApplication.java
tax-demo\tax-demo-api\pom.xml
- tax-demo\pom.xml
版本号控制和项目公共依赖
- tax-demo\.gitignore
git文件ignore规则配置
- tax-demo\tax-demo-biz\pom.xml
所用模块配置
- tax-demo\tax-demo-biz\src\main\resources\bootstrap.yml
nacos配置
- tax-demo\tax-demo-biz\src\main\resources\logback-spring.xml
日志配置
- tax-demo\tax-demo-biz\src\main\resources\META-INF\spring.factories
跨package需要被spring装载或扫描规则配置
- tax-demo\tax-demo-biz\src\main\java\com\deloitte\atrapa\tax\efiling\DemoApplication.java
启动入口 main函数
- tax-demo\tax-demo-api\pom.xml
外部引用需要的项目公共依赖
配置文件配置
http://10.172.64.204:11010/nacos
tax-demo-biz-${profile}.yml
tax-demo-biz-dev.yml
## spring security 配置
security:
oauth2:
client:
client-id: ENC(ltJPpR50wT0oIY9kfOe1Iw==)
client-secret: ENC(ltJPpR50wT0oIY9kfOe1Iw==)
scope: server
ignore-urls:
- /druid/**
- /actuator/**
- /v2/api-docs
# 数据源
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: sa
password: Dtt@123456789
url: jdbc:sqlserver://10.172.64.204:1433;DatabaseName=tax_demo
stat-view-servlet:
enabled: true
url-pattern: /druid/*
#login-username: admin
#login-password: admin
filter:
stat:
enabled: true
log-slow-sql: true
slow-sql-millis: 10000
merge-sql: false
wall:
config:
multi-statement-allow: true
# Logger Config
logging:
level:
com.ling.cloud.admin.mapper: debug
编码规范
- 多使用Lombok
- model规范
@Data
- dao规范
- service规范
- controller规范
- VO规范
提供跨服务服务
调用跨服务服务
接口的调试
前端界面开发
npm install -g yarn
npm install -g nrm
nrm ls #可以查看npm的数据源,通过nrm use xxx进行切换
nrm use taobao
yarn install
后端接口地址配置
- 所有接口配置
- e-filing-ui\vue.config.js
const url = 'http://10.172.64.204:11023' // const url = 'http://CNPC0YBYRL:11023'
- 单独接口配置,注意去掉跳转关系
'^/efiling': '/efiling'
-->
'^/efiling': '/'
'/efiling': {
target: 'http://CNPC0YBYRL:11024',
ws: true,
pathRewrite: {
'^/efiling': '/'
}
},
开发流程
model-->自动代码-->自己方法-->postman调试-->提交代码并自动发布-->告诉前端api文档地址和api规范-->联调
用户,角色,菜单,权限
端口查杀
netstat -ano taskkill -F -pid ####
仓库损坏
- C:\Users\jasonbwang\.m2\org\jboss\jboss-parent\31 修改为 <version.compiler.plugin>3.8.0</version.compiler.plugin>
- 重新发布hibernate tool
- 上传 jtidy 和aliyun相关jar
- 重新发布ling
新安装环境
- 管理员安装软件
- 执行 git config --system http.sslverify false