setting中的:
<profile>
<id>environment</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<environment.type>dev</environment.type>
<propertyl>2</propertyl>
</properties>
</profile>
<profile>
<id>product</id>
<activation>
<property>
<name>environment.type</name>
<value>prod</value>
</property>
</activation>
<properties>
<database.password>xjl</database.password>
<propertyl>3</propertyl>
</properties>
</profile>
加入后就会出现上面的错误
项目中POM
<profiles>
<profile>
<id>development</id>
<activation>
<property>
<name>environment.type</name>
<value>dev</value>
</property>
</activation>
<properties>
<jdbc.driverClassName>oracle.jdbc.driver.OracleDriver</jdbc.driverClassName>
<jdcb.url>jdbc:oracle:thin:@proddb01:1521:DEV</jdcb.url>
<jdbc.username>dev_user</jdbc.username>
<jdbc.password>xjl</jdbc.password>
</properties>
</profile>
<profile>
<id>production</id>
<activation>
<property>
<name>environment.type</name>
<value>prod</value>
</property>
</activation>
<properties>
<jdbc.driverClassName>com.mysql.jdbc.Driver</jdbc.driverClassName>
<jdcb.url>jdbc:mysql://localhost:3306/production_db</jdcb.url>
<jdbc.username>prod_user</jdbc.username>
<jdbc.password>xjl</jdbc.password>
</properties>
</profile>
</profiles>
请问如何解决,是不是要激活profile?