将pom的个人资料值带到jsp

时间:2018-06-20 02:14:44

标签: spring spring-mvc spring-profiles egovernment

我在pom.xml上有dev,local,prod配置文件

    <profile>
        <id>local</id>
        <properties>
            <env>local</env>
        </properties>
    </profile>
    <profile>
        <id>dev</id>
        <properties>
            <env>dev</env>
        </properties>
    </profile>
    <profile>
        <id>prod</id>
        <properties>
            <env>prod</env>
        </properties>
    </profile>
</profiles>

是否可以将此配置文件值带到jsp?
我想用不同的编译选项拆分jsp的某些区域

<c:choose>
            <c:when test="${isFlag =='loc'}">
            <c:when test="${isFlag =='dev'}">

</>

0 个答案:

没有答案