Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
6f934d89
"vscode:/vscode.git/clone" did not exist on "01319f1de9926ba5b0df3bd54498bafacc78ac97"
Commit
6f934d89
authored
Apr 13, 2018
by
ykb
Browse files
调整pom结构,添加Eureka
parent
d6041b7a
Changes
10
Show whitespace changes
Inline
Side-by-side
admin-cloud/admin-cloud-eureka-server/.gitignore
0 → 100644
View file @
6f934d89
/target/
admin-cloud/admin-cloud-eureka-server/pom.xml
0 → 100644
View file @
6f934d89
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.ibeetl
</groupId>
<artifactId>
admin-cloud
</artifactId>
<version>
1.1.1
</version>
</parent>
<artifactId>
admin-cloud-eureka-server
</artifactId>
<name>
admin-cloud-eureka-server
</name>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-server
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
admin-cloud/admin-cloud-eureka-server/src/main/java/com/ibeetl/cloud/eurekaserver/EurekaServerApplication.java
0 → 100644
View file @
6f934d89
package
com.ibeetl.cloud.eurekaserver
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.server.EnableEurekaServer
;
/**
* 服务注册中心
* @author yangkebiao
*
*/
@EnableEurekaServer
@SpringBootApplication
public
class
EurekaServerApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
EurekaServerApplication
.
class
,
args
);
}
}
admin-cloud/admin-cloud-eureka-server/src/main/resources/application.properties
0 → 100644
View file @
6f934d89
server.port
=
8761
spring.application.name
=
eureka-service
#eureka-server
eureka.instance.hostname
=
loclhost
eureka.client.register-with-eureka
=
false
eureka.client.fetch-registry
=
false
eureka.client.serviceUrl.defaultZone
=
http://${eureka.instance.hostname}:${server.port}/eureka/
admin-cloud/pom.xml
View file @
6f934d89
...
...
@@ -23,14 +23,14 @@
<module>
admin-cloud-eureka-server
</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
<!--
<build>
-->
<!--
<plugins>
-->
<!--
<plugin>
-->
<!--
<groupId>org.springframework.boot</groupId>
-->
<!--
<artifactId>spring-boot-maven-plugin</artifactId>
-->
<!--
</plugin>
-->
<!--
</plugins>
-->
<!--
</build>
-->
<dependencyManagement>
...
...
admin-console/pom.xml
View file @
6f934d89
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.ibeetl
</groupId>
<artifactId>
admin-console
</artifactId>
<version>
1.1.1
</version>
<packaging>
jar
</packaging>
<!-- <parent> -->
<!-- <groupId>com.ibeetl</groupId> -->
<!-- <artifactId>admin</artifactId> -->
<!-- <version>1.1.1</version> -->
<!-- </parent> -->
<parent>
<groupId>
com.ibeetl
</groupId>
<artifactId>
admin
</artifactId>
<artifactId>
admin
-cloud
</artifactId>
<version>
1.1.1
</version>
</parent>
...
...
@@ -18,6 +21,18 @@
<artifactId>
admin-core
</artifactId>
<version>
1.1.1
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<!-- 重新覆盖mysql的版本,原因:虽然admin-core更新过mysql版本,但由于parent是admin-cloud,导致更新的版本失效 -->
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
6.0.5
</version>
</dependency>
</dependencies>
...
...
admin-console/src/main/java/com/ibeetl/admin/CosonleApplication.java
View file @
6f934d89
...
...
@@ -5,8 +5,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.web.WebApplicationInitializer
;
@EnableEurekaClient
@SpringBootApplication
@EnableCaching
public
class
CosonleApplication
extends
SpringBootServletInitializer
{
...
...
admin-console/src/main/resources/application.properties
View file @
6f934d89
...
...
@@ -32,3 +32,10 @@ logging.pattern.console=%-4relative [%thread] %-5level %logger{256} %M %L - %msg
spring.devtools.restart.exclude
=
templates/**
#文档预览服务的调用地址,参考https://gitee.com/kekingcn/file-online-preview 安装,没有如下配置无法使用预览功能
file.previewURL
=
http://localhost:8012/onlinePreview
spring.application.name
=
console-service
#eureka-client
eureka.client.serviceUrl.defaultZone
=
http://localhost:8761/eureka/
admin-core/pom.xml
View file @
6f934d89
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.ibeetl
</groupId>
<artifactId>
admin-core
</artifactId>
<version>
1.1.1
</version>
<packaging>
jar
</packaging>
<properties>
<maven.test.skip>
true
</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-cache
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<artifactId>
beetl-framework-starter
</artifactId>
<version>
1.1.45.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.trigersoft
</groupId>
<artifactId>
jaque
</artifactId>
<version>
2.1.2
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.zaxxer
</groupId>
<artifactId>
HikariCP
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
6.0.5
</version>
</dependency>
<!-- <dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency> -->
<dependency>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-recipes
</artifactId>
...
...
@@ -45,6 +104,7 @@
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.3.2
</version>
</dependency>
<dependency>
...
...
pom.xml
View file @
6f934d89
...
...
@@ -8,7 +8,6 @@
<properties>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<commons-lang3.version>
3.3.2
</commons-lang3.version>
</properties>
<modules>
<module>
admin-core
</module>
...
...
@@ -22,76 +21,16 @@
</parent>
<!-- Add typical dependencies for a web application -->
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-aop
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-cache
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
</dependency>
<dependency>
<groupId>
com.ibeetl
</groupId>
<artifactId>
beetl-framework-starter
</artifactId>
<version>
1.1.45.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.trigersoft
</groupId>
<artifactId>
jaque
</artifactId>
<version>
2.1.2
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.zaxxer
</groupId>
<artifactId>
HikariCP
</artifactId>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
6.0.5
</version>
</dependency>
<!-- <dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0</version>
</dependency> -->
</dependencies>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment