Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
d612af5e
Commit
d612af5e
authored
Mar 08, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nacos server本地化采用jar方式启动,简化开发
parent
e1c0b0fa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
133 additions
and
0 deletions
+133
-0
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/Dockerfile
+16
-0
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/pom.xml
+54
-0
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/src/main/java/com/alibaba/nacos/JeecgNacosApplication.java
+34
-0
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/src/main/resources/application.yml
+29
-0
No files found.
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/Dockerfile
0 → 100644
View file @
d612af5e
FROM
anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER
jeecgos@163.com
RUN
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN
mkdir
-p
/jeecg-cloud-nacos
WORKDIR
/jeecg-cloud-nacos
EXPOSE
8848
ADD
./target/jeecg-cloud-nacos-2.4.2.jar ./
CMD
sleep 50;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-nacos-2.4.2.jar
\ No newline at end of file
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/pom.xml
0 → 100644
View file @
d612af5e
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<artifactId>
jeecg-cloud-module
</artifactId>
<groupId>
org.jeecgframework.boot
</groupId>
<version>
2.4.2
</version>
</parent>
<artifactId>
jeecg-cloud-nacos
</artifactId>
<name>
jeecg-cloud-nacos
</name>
<description>
nacos启动模块
</description>
<dependencies>
<dependency>
<groupId>
org.apache.tomcat.embed
</groupId>
<artifactId>
tomcat-embed-jasper
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<dependency>
<groupId>
org.jeecgframework.nacos
</groupId>
<artifactId>
nacos-naming
</artifactId>
<version>
1.4.1
</version>
</dependency>
<dependency>
<groupId>
org.jeecgframework.nacos
</groupId>
<artifactId>
nacos-istio
</artifactId>
<version>
1.4.1
</version>
</dependency>
<dependency>
<groupId>
org.jeecgframework.nacos
</groupId>
<artifactId>
nacos-config
</artifactId>
<version>
1.4.1
</version>
</dependency>
<dependency>
<groupId>
org.jeecgframework.nacos
</groupId>
<artifactId>
nacos-console
</artifactId>
<version>
1.4.1
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/src/main/java/com/alibaba/nacos/JeecgNacosApplication.java
0 → 100644
View file @
d612af5e
package
com
.
alibaba
.
nacos
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
/**
* Nacos 启动类
* 引用的nacos console 源码运行,简化开发
* 生产建议从官网下载最新版配置运行
* @author zyf
*/
@SpringBootApplication
(
scanBasePackages
=
"com.alibaba.nacos"
)
@ServletComponentScan
@EnableScheduling
public
class
JeecgNacosApplication
{
/**
* 是否单机模式启动
*/
private
static
String
standalone
=
"true"
;
/**
* 是否开启鉴权
*/
private
static
String
enabled
=
"false"
;
public
static
void
main
(
String
[]
args
)
{
System
.
setProperty
(
"nacos.standalone"
,
standalone
);
System
.
setProperty
(
"nacos.core.auth.enabled"
,
enabled
);
SpringApplication
.
run
(
JeecgNacosApplication
.
class
,
args
);
}
}
jeecg-boot/jeecg-cloud-module/jeecg-cloud-nacos/src/main/resources/application.yml
0 → 100644
View file @
d612af5e
server
:
port
:
8848
tomcat
:
basedir
:
logs
db
:
num
:
1
user
:
${MYSQL-USER:root}
password
:
${MYSQL-PWD:root}
url
:
0
:
jdbc:mysql://${MYSQL-HOST:jeecg-boot-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:nacos}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
nacos
:
core
:
auth
:
system.type
:
nacos
default.token.secret.key
:
SecretKey012345678901234567890123456789012345678901234567890123456789
security
:
ignore
:
urls
:
/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
spring
:
datasource
:
platform
:
mysql
security
:
enabled
:
true
useAddressServer
:
true
Write
Preview
Markdown
is supported
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