Comments (3)
- 服务器安装Java环境, 安装Maven
- 项目down下来后, 修改conf.properties, 配置用户名密码, 配置Nginx路径以及NginxConf文件路径.
- 在项目目录执行 mvn clean package 会将代码编译成Jar包到target目录.
- 执行java -jar Jar包路径.jar
- 访问8889端口.
from nginx-gui.
@onlyGuo
使用mvn clean package编译时报错
我jdk用的1.8,maven用的3.6,有朋友遇到过这样的问题么,求解答
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.11 sec <<< FAI
LURE! - in com.xhd.aiyi.wiki.wiki.WikiApplicationTests
initializationError(com.xhd.aiyi.wiki.wiki.WikiApplicationTests) Time elapsed:
0.003 sec <<< ERROR!
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you
need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
at org.springframework.util.Assert.state(Assert.java:70)
at org.springframework.boot.test.context.SpringBootTestContextBootstrapp
er.getOrFindConfigurationClasses(SpringBootTestContextBootstrapper.java:202)
at org.springframework.boot.test.context.SpringBootTestContextBootstrapp
er.processMergedContextConfiguration(SpringBootTestContextBootstrapper.java:137)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:409)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildDefaultMergedContextConfiguration(AbstractTestContextBootstrapper.java:
323)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildMergedContextConfiguration(AbstractTestContextBootstrapper.java:277)
at org.springframework.test.context.support.AbstractTestContextBootstrap
per.buildTestContext(AbstractTestContextBootstrapper.java:112)
at org.springframework.boot.test.context.SpringBootTestContextBootstrapp
er.buildTestContext(SpringBootTestContextBootstrapper.java:82)
at org.springframework.test.context.TestContextManager.(TestContex
tManager.java:120)
at org.springframework.test.context.TestContextManager.(TestContex
tManager.java:105)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.creat
eTestContextManager(SpringJUnit4ClassRunner.java:152)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init
(SpringJUnit4ClassRunner.java:143)
at org.springframework.test.context.junit4.SpringRunner.(SpringRun
ner.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBui
lder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(Annotated
Builder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilde
r.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForC
lass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilde
r.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:
33)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provide
r.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUni
t4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameCla
ssLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(Fork
edBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
103)
Results :
Tests in error:
WikiApplicationTests.initializationError ? IllegalState Unable to find a @SPRI
...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.696 s
[INFO] Finished at: 2019-02-15T11:53:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
18.1:test (default-test) on project nginx: There are test failures.
[ERROR]
[ERROR] Please refer to D:\nginx-gui-master\target\surefire-reports for the indi
vidual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
from nginx-gui.
第一个版本的发行包已经编译, 在GitHub中下载你对应的系统的发行包.
包内集成了Java运行环境, 无需手动配置JDK.
- 下载好后, 解压, 修改conf/conf. properties文件, 将你的Nginx安装地址和Nginx配置文件地址设置进去.
- 在配置文件中,
account.admin = admin
表示 创建一个admin的账户, 他的密码是admin, 若想添加一个用户为abc, 密码为123的用于, 在conf/conf. properties中追加一行account.abc = 123
即可. - 设置好配置文件后, 运行startup.sh或startup.bat即可启动.
- 访问端口8889
如有问题, 请重开issues
from nginx-gui.
Related Issues (20)
- 期待加个docker版 HOT 7
- 怎样指定启动端口? 默认启动端口被其它服务占用 HOT 1
- Can we have it in english HOT 2
- include添加的配置文件无法被读取 HOT 4
- NoClassDefFoundError HOT 19
- 使用chrome浏览器,点击左侧菜单没反应 HOT 9
- 在读配置文件nginx.conf时出现中文乱码的问题 HOT 1
- 登录时,密码无效,也没有提示,一直停留在首页 HOT 2
- release版本中的包如何生成? HOT 1
- nginx.conf内有中文,显示为乱码 HOT 1
- Russian translation HOT 1
- ubuntu 上总是提示 Permission denied HOT 1
- 只能编辑nginx.conf文件,想编辑vhost文件的怎么办,另外怎么管理多个nginx HOT 4
- 一打开就提示 For input string:"Interfac"
- 界面bug HOT 1
- 启动后修改配置文件并点击保存热加载按钮报错 HOT 2
- 点击登录没反应
- nginx-gui是否支持ldap模块了? HOT 1
- 监听列表24个,规则列表84个 HOT 1
- nginx配置文件保存并热加载后,无法正确读取配置 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-gui.