先前哪个 HelloWorld 文件的public写错了 建议先在eclipse中编辑,再拷贝出来,这样不容易出错
2018-02-05
<groupId>com.imooc.maven01</groupId>
<artifactId>maven01-model</artifactId>
<version>*-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
</dependencies>
<artifactId>maven01-model</artifactId>
<version>*-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
</dependency>
</dependencies>
2018-02-05
package com.imooc.maven01.model;
pulbic class HelloWorld {
pulbic String sayHello() {return "Hello World!";}}
package 同上;
import org.junit.*;
import org.junit.Assert.*;
public class HelloWorldTest {
@Test
public void testHello() {Assert.assertEquals("Hello World!",new HelloWorld().sayHello());}}
pulbic class HelloWorld {
pulbic String sayHello() {return "Hello World!";}}
package 同上;
import org.junit.*;
import org.junit.Assert.*;
public class HelloWorldTest {
@Test
public void testHello() {Assert.assertEquals("Hello World!",new HelloWorld().sayHello());}}
2018-02-05
jetty打包运行我的pom.xml文件报错
No plugin descriptor found at META-INF/maven/plugin.xml
No plugin descriptor found at META-INF/maven/plugin.xml
2018-02-01
还是tomcat好用,myeclipse配置好tomcat,直接部署就好了,runas什么的...............
2018-01-29