摘要:
@JsonIgnore:排除json序列化,将它标注在属性上不会进行json序列化 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh"):进行日期格式化 @JsonInclude(JsonInclude.Include.NON_NULL 阅读全文
摘要:
引入依赖 <!-- junit5 spring-test--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test 阅读全文
摘要:
引入lombok依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.24</version> <scope>provided</scope> </depe 阅读全文
摘要:
应用程序由以下命令启动时,配置文件加载顺序 优先级从高到低 阅读全文
摘要:
创建父工程 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in 阅读全文
摘要:
async:表示函数是异步执行, await:表示当前函数先执行,执行完之后,再执行其他函数 await用于等待一个promise对象,它只能在async函数中使用. async函数,会返回一个Promise对象,可以用.then调用async函数中return的结果 async function 阅读全文
摘要:
路径配置 当springboot中设置项目访问路径 server.servlet.context-path=/demo vue项目中vue.config.js需配置publicPath module.exports = { transpileDependencies: true, configure 阅读全文
摘要:
vue.config.js文件中 module.exports = { configureWebpack: { resolve: { alias: { 'assets': '@/assets', 'common': '@/common', 'components': '@/components', 阅读全文