Thread.exit() 行:不可用??编辑源查找路径?
Thread.exit() Line: not Available?? Edit Source Lookup Path?
Java Class:
package com.org.spring;
public class Restuarent {
public void greatingMessage() {
System.out.println("Welcome..");
}
}
Java Class 测试 Spring:
public class TestSpringPro {
@SuppressWarnings("resource")
public static void main(String[] args) {
try {
ApplicationContext context =
new ClassPathXmlApplicationContext("springConfig.xml");
Restuarent restObj = (Restuarent) context.getBean("restuarentBean");
restObj.greatingMessage();
} catch(Exception e) {
e.printStackTrace();
e.getMessage();
}
}
}
XML:bean 配置
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="restuarentBean" class="com.org.spring.Restuarent">
</bean>
</beans>
我是 java 的新手,因为我在调试这个简单的 spring 程序时有点困惑,最后我要去 "Thread.exit() Line: not Available" 但只是 运行 没有错误来了为什么请让我知道。我知道这可能很简单,但提前致谢
Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked
编辑。现在单击 Add External Jar ,转到您的 java 路径
"C:\Program Files\Java\jdk1.8.0_60" 像这样找到 src.zip 并添加这个
之后,我验证了它是否有效。
Java Class:
package com.org.spring;
public class Restuarent {
public void greatingMessage() {
System.out.println("Welcome..");
}
}
Java Class 测试 Spring:
public class TestSpringPro {
@SuppressWarnings("resource")
public static void main(String[] args) {
try {
ApplicationContext context =
new ClassPathXmlApplicationContext("springConfig.xml");
Restuarent restObj = (Restuarent) context.getBean("restuarentBean");
restObj.greatingMessage();
} catch(Exception e) {
e.printStackTrace();
e.getMessage();
}
}
}
XML:bean 配置
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="restuarentBean" class="com.org.spring.Restuarent">
</bean>
</beans>
我是 java 的新手,因为我在调试这个简单的 spring 程序时有点困惑,最后我要去 "Thread.exit() Line: not Available" 但只是 运行 没有错误来了为什么请让我知道。我知道这可能很简单,但提前致谢
Window->Preferences, Java->Installed JRE's, clicked on my JRE and clicked 编辑。现在单击 Add External Jar ,转到您的 java 路径 "C:\Program Files\Java\jdk1.8.0_60" 像这样找到 src.zip 并添加这个 之后,我验证了它是否有效。