Java开发配置
-
数据库参数
-
application.properties形式
spring.datasource.url=jdbc:mysql://localhost:3306/security?useUnicode=true&charsetEncoding=UTF-8 spring.datasource.username=root spring.datasource.password=root spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
-
application.yml形式
spring: datasource: type: com.alibaba.druid.pool.DruidDataSource druid: username: root password: root url: jdbc:mysql://localhost/oa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-
-
IDEA实现SpringBoot项目热部署
-
pom.xml添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope> </dependency> <configuration> <fork>true</fork> </configuration>
-
File =>Setting =>Build,Execution =>Complier =>Build project automaticalluy =>应用
-
Ctrl + Alt + Shift + / 选择Registry, 向下滑勾选compiler.automake.allow.when.app.running
-
重启IDEA
-
-
常见数据校验格式
-
身份证号码
/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/
-
手机号码
/(^1[3|4|5|6|7|8|9]\d{9}$)|(^09\d{8}$)/
-
-
修改maven默认的jdk版本
<profile> <id>jdk-1.8</id> <activation> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source> 1.8 </maven.compiler.source> <maven.compiler.target> 1.8 </maven.compiler.target> <maven.compiler.compilerVersion> 1.8 </maven.compiler.compilerVersion> </properties> </profile>
-
前端开发常用插件
- eslint 语法校验
- Vetur 给vue设置高亮
- View in browser 右键在浏览器中查看html文件
- Atom One Dark Theme 主题
- Eclipse Keymap 和Eclipse快捷键保持一致
- Live Server 可以实时预览html的内容
- IntelliSense for CSS class names in HTML 自动给html追踪引入的样式
- VueHelper Vue代码快捷键提示 支持html js
-
安装js-cookies
- 作用: 很优雅地操作cookies
- 安装: npm install js-cookie --save
-
安装axios
- 作用: 可以发送异步网络调用
- 安装: npm install axios --save
-
安装normalize.css
- 作用: 现代化的重置浏览器默认样式的css文件
- 安装: npm install --save normalize.css
-
安装element-ui
- 前端组件库,可以很好的配合vue使用
- 安装: npm install element-ui --save