Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘hlb’ defined in class path resource [applicationContext.xml]: Could not resolve placeholder ‘app.name’ in value “
a
p
p
.
n
a
m
e
"
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
j
a
v
a
.
l
a
n
g
.
I
l
l
e
g
a
l
A
r
g
u
m
e
n
t
E
x
c
e
p
t
i
o
n
:
C
o
u
l
d
n
o
t
r
e
s
o
l
v
e
p
l
a
c
e
h
o
l
d
e
r
′
a
p
p
.
n
a
m
e
′
i
n
v
a
l
u
e
"
{app.name}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'app.name' in value "
app.name";nestedexceptionisjava.lang.IllegalArgumentException:Couldnotresolveplaceholder′app.name′invalue"{app.name}”
2020-12-07 16:50:10,161 [main] INFO (AutoConfigurationReportLoggingInitializer:101) -
代码报错,前一天还可以运行,第二天怎么都不好用了,maven没有问题,代码也没有问题,配置什么的都ok,后来找了好久,是不小心把模块重置成文件夹了。。。
正常的模块:
我不小心改成了没有蓝色小方块的。。。
解决办法 :右键
点击reload project 重新加载进来就可以了✌️
Could not resolve placeholder ‘app.name‘ in value “${app.name}“
最新推荐文章于 2023-10-19 20:17:46 发布