IDEA开发Spring Boot项目常见问题

IDEA插件使用Lombok找不到符号问题

Settings -> Annotation Processors -> 勾选 Enable annotation processing

IDEA引入Spring Boot项目不识别yml文件

yml配置:

1
2
3
4
5
spring:
profiles:
active: dev
server:
port: 6666

启动日志:

1
2
3
4
No active profile set, falling back to default profiles: default
Tomcat initialized with port(s): 8080 (http)

Could not resolve placeholder '***' in value "${***}"

从启动日志可以看出配置项均未识别

解决办法:修改pom.xml,删除以下这一行或改为jar

1
<packaging>pom</packaging>

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :