Olá estou local não web e estou querendo
trazer o caminho onde está o arquivo persistence.xml
pra uma rotina de ler o arquivo xml …
mas não estou conseguindo achar o caminho desse arquivo …
dessa forma está certto ???
abs
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
TestePersistenceXML x = new TestePersistenceXML();
x.xxx();
public void xxx() throws Exception {
URL myurl = Manager.class.getClass().getResource("persistence.xml");
System.out.println("Valor ="+myurl);
}
resultado :
Valor = null