Home > Back-end >  Look not to understand the spring - the boot - starter - parent: 2.0.2. The pom
Look not to understand the spring - the boot - starter - parent: 2.0.2. The pom

Time:01-21

Spring - the boot - starter - parent: 2.0.2 RELEASE. There is following a period of pom, look not to understand what is the role, the first filtering, then excluses don't is to include all the resources? Feel useless, why write like this?




True
The ${basedir}/SRC/main/resources

/application * * *. Yml
/application * * *. Yaml
/application * * *. Properties



The ${basedir}/SRC/main/resources

/application * * *. Yml
/application * * *. Yaml
/application * * *. Properties


CodePudding user response:

After another wall bumps bumps bumps

CodePudding user response:

True Is added in the include?

CodePudding user response:

Refer to
https://stackoverflow.com/questions/34749819/maven-resource-filtering-exclude/34750851

CodePudding user response:

refer to the second floor stacksoverflow response:
& lt; Filtering> True Is added in the include?

The source code is such, direct copy, can't go wrong

CodePudding user response:

Filtering label the content of the meaning behind is not to say that whether to do the include and exclude operation, but related resources whether to do processing, the content including replacement resources inside the corresponding variable values, such as in your application. The variables defined in the properties using the maven inside @ version @, after using the filter will be specified in the include file content @ version @ replace the actual value,
So you can see two defines the resource blocks,

True
The ${basedir}/SRC/main/resources

/application * * *. Yml
/application * * *. Yaml
/application * * *. Properties


This piece of the specified file needs to be done resource filtering, will replace the variables,

The ${basedir}/SRC/main/resources

/application * * *. Yml
/application * * *. Yaml
/application * * *. Properties


Because in the face of these documents before done the same special treatment, so there will be a corresponding resource set to exclude
  • Related