을 profile.xml.임베디드 부두 받는다는 내가 임베디드 형태의 부두를 시작하려고하지만 난 문제가 내가 profile.xml에 이전에 포함 된 부두의 시작 속성 값을 읽을 필요가 <p></p>이
제안 사항? 여기
제가MVN 부두 형 프로파일 (로컬 DEV) 상기 활성화 받는다는 측에서는 profile.xml 콘텐츠
.....
<profile>
<id>local-dev</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<!-- Common Security Framework Properties -->
<security.context.file>applicationContext-security-csf.xml</security.context.file>
<csf.jndi.name>jdbc/securityDS</csf.jndi.name>
<csf.security.system.admin.roleId>884</csf.security.system.admin.roleId>
<csf.cas.url>tkvwasa01.secure.kodcu.com</csf.cas.url>
<application.service.url>localhost:8080/pqis-admin</application.service.url>
</properties>
</profile>
이다 실행
로컬 DEV하지만 어떻게 수 임베디드 부두를 사용할 때 위의 프로필 (local-dev)을 활성화 하시겠습니까?
임베디드 부두의 코드 :
public class Start {
public static void main(String[] args) throws Exception {
Server server = new Server();
SocketConnector connector = new SocketConnector();
// Set some timeout options to make debugging easier.
connector.setMaxIdleTime(1000 * 60 * 60);
connector.setSoLingerTime(-1);
connector.setPort(8080);
server.setConnectors(new Connector[] { connector });
WebAppContext bb = new WebAppContext();
bb.setServer(server);
bb.setContextPath("/");
bb.setWar("src/main/webapp");
.....
}
}
감사합니다.
어떤 문제가 있습니까? 아마도 당신은 당신이 maven을 통해 그것을 시작하려고한다고 가정하고, 당신의 관련 pom 스 니펫을 게시해야합니다. – Raghuram
임베디드 부두 (시작 클래스)를 실행할 때, 어떻게 maven이 나타나게 될까요? – Raghuram
maven이 나타나지 않아 Start.java가 profile.xml 내용에 액세스 할 수 없음 – Altug