Skip to content

Commit

Permalink
相关修改
Browse files Browse the repository at this point in the history
  • Loading branch information
yu.xiao committed Jan 9, 2018
1 parent c55ccc2 commit 6224639
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,14 @@ myth

* ### 为什么我运行demo工程,找不到applicationContent.xml呢?
##### 答:请设置项目的资源文件夹。

* ### 为什么我启动myth-admin项目的时候,会报mongo 集群连接错误呢?
##### 答:这是因为项目里面有mongo代码,spring boot会自动配置,该错误没有关系,只要admin项目能正常启动就行。

# Support

* ### 如有任何问题欢迎加入QQ群进行讨论

![](https://yu199195.github.io/images/qq.png)


Expand Down
16 changes: 11 additions & 5 deletions myth-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<dependency>
<groupId>com.github.myth</groupId>
<artifactId>myth-common</artifactId>
<exclusions>
<exclusion>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</exclusion>
</exclusions>
</dependency>

<!--spring boot的核心启动器-->
Expand Down Expand Up @@ -68,11 +74,11 @@
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

<!-- <dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>-->

</dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
Expand Down Expand Up @@ -100,10 +106,10 @@
<artifactId>spring-data-mongodb</artifactId>
</dependency>

<dependency>
<!-- <dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</dependency>
</dependency>-->

<dependency>
<groupId>org.apache.zookeeper</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
package com.github.myth.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;

/**
* @author xiaoyu
*/
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@SpringBootApplication(exclude = {MongoAutoConfiguration.class})
public class MythAdminApplication {
public static void main(String[] args) {
SpringApplication.run(MythAdminApplication.class, args);
Expand Down
2 changes: 1 addition & 1 deletion myth-admin/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div id="app">
<app></app>
</div>
<a id="serverIpAddress" style="display: none" href="http://192.168.1.148:8888/myth-admin">
<a id="serverIpAddress" style="display: none" href="http://localhost:8888/myth-admin">
</a>
<script type="text/javascript" src="bundle.js"></script></body>
</html>

0 comments on commit 6224639

Please sign in to comment.