right now i have this in my xml file:
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3306/dashboardsupervisor" /> <property name="username" value="root" /> <property name="password" value="${jdbc.password}" /> </bean>
and
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"> <value>file:C:/jdbc.properties</value> </property> </bean>
Now my problem is that I do not know the exact location of this file (jdbc.properties), since this application will run on different computers, in some places it is installed in c :, sometimes it can be on f: .. So, if I do not know the path to this file, if there is anyway, I could find it.
thanks
source share