Home > Back-end >  @ PropertySource (" classpath: wxMiniApp. Properties ") can't find the file
@ PropertySource (" classpath: wxMiniApp. Properties ") can't find the file

Time:01-27

The idea of gradle project

@ PropertySource always can not find a file, don't know what the reason,
Can only be written in the application. The properties,

The idea reason?

Excuse me, how to solve???

CodePudding user response:

@ ConfigurationProperties (
The prefix="ABC. Edf. Application"
)

CodePudding user response:

@ Data
//@ PropertySource (" classpath: wxMiniApp. Properties ") @ PropertySource invalid don't know what the reason, should be the idea of reason, can only all is written in the application. The properties of
@ ConfigurationProperties (prefix="wx. Miniapp")
Wrote don't sink

CodePudding user response:

Please refer to https://yao2san.com/article/1115

CodePudding user response:

Online for a long time feeling is idea classpath path and the eclipse is different, how to set down under the resources is to find the classpath

CodePudding user response:

Your resources is the resource directory? If so, his icon and ordinary package icon is not the same as the forehead

If not, email, mark directory as - & gt; Resources root

CodePudding user response:

Idea to compile the classes and resources got two folders, at the same level

CodePudding user response:

Sink again!!!!!!

CodePudding user response:

refer to 6th floor jialiguo response:
idea when compiling classes and resources to get the two folders, at the same level of




Look at 5 floor, need to set the resources for the resource folder,

CodePudding user response:

Must set up the new project is automatic, when I saw is also detailed resources or not

CodePudding user response:

To set the maven pom file resource, ex
/* * *. Xml
/* * *. Yml
/* * *. Properties
  • Related