Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
see-demo
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭光辉
see-demo
Commits
c8bceed4
Commit
c8bceed4
authored
Jun 26, 2025
by
郭光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化demo骨架
parents
Pipeline
#285
failed with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
270 additions
and
0 deletions
+270
-0
pom.xml
pom.xml
+23
-0
pom.xml
see-demo-api/pom.xml
+41
-0
package-info.java
.../src/main/java/com/see/cloud/demo/feign/package-info.java
+2
-0
pom.xml
see-demo-biz/pom.xml
+93
-0
DemoApplication.java
...biz/src/main/java/com/see/cloud/demo/DemoApplication.java
+25
-0
package-info.java
...main/java/com/see/cloud/demo/controller/package-info.java
+2
-0
package-info.java
...rc/main/java/com/see/cloud/demo/service/package-info.java
+2
-0
application.yml
see-demo-biz/src/main/resources/application.yml
+19
-0
logback-spring.xml
see-demo-biz/src/main/resources/logback-spring.xml
+63
-0
No files found.
pom.xml
0 → 100644
View file @
c8bceed4
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see
</artifactId>
<version>
3.8.3
</version>
</parent>
<artifactId>
see-demo
</artifactId>
<description>
see-demo 模块
</description>
<packaging>
pom
</packaging>
<!--项目子模块-->
<modules>
<module>
see-demo-api
</module>
<module>
see-demo-biz
</module>
</modules>
</project>
see-demo-api/pom.xml
0 → 100644
View file @
c8bceed4
<?xml version="1.0"?>
<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.see.cloud
</groupId>
<artifactId>
see-demo
</artifactId>
<version>
3.8.3
</version>
</parent>
<artifactId>
see-demo-api
</artifactId>
<packaging>
jar
</packaging>
<description>
demo 接口模块
</description>
<dependencies>
<!-- core 工具类 -->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-core
</artifactId>
</dependency>
<!--feign 注解依赖-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-feign
</artifactId>
</dependency>
<!--mybatis 依赖-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-mybatis
</artifactId>
</dependency>
<!-- excel 导入导出 -->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-excel
</artifactId>
</dependency>
</dependencies>
</project>
see-demo-api/src/main/java/com/see/cloud/demo/feign/package-info.java
0 → 100644
View file @
c8bceed4
package
com
.
see
.
cloud
.
demo
.
feign
;
\ No newline at end of file
see-demo-biz/pom.xml
0 → 100644
View file @
c8bceed4
<?xml version="1.0"?>
<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.see.cloud
</groupId>
<artifactId>
see-demo
</artifactId>
<version>
3.8.3
</version>
</parent>
<artifactId>
see-demo-biz
</artifactId>
<packaging>
jar
</packaging>
<description>
demo 业务模块
</description>
<dependencies>
<!--必备: 依赖api模块-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-demo-api
</artifactId>
<version>
3.8.3
</version>
</dependency>
<!--选配: orm 模块-->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-spring-boot3-starter
</artifactId>
</dependency>
<dependency>
<groupId>
com.mysql
</groupId>
<artifactId>
mysql-connector-j
</artifactId>
</dependency>
<!--必备:安全模块-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-security
</artifactId>
</dependency>
<!--必备:服务处理-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-feign
</artifactId>
</dependency>
<!--必备:日志处理-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-log
</artifactId>
</dependency>
<!--必备:swagger-->
<dependency>
<groupId>
com.see.cloud
</groupId>
<artifactId>
see-common-swagger
</artifactId>
</dependency>
<!--必备: 注册中心客户端-->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
</dependency>
<!--必备: 配置中心客户端-->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-config
</artifactId>
</dependency>
<!--必备:undertow容器-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
</dependency>
</dependencies>
<profiles>
<profile>
<id>
boot
</id>
</profile>
<profile>
<id>
cloud
</id>
<activation>
<!-- 默认环境 -->
<activeByDefault>
true
</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
see-demo-biz/src/main/java/com/see/cloud/demo/DemoApplication.java
0 → 100644
View file @
c8bceed4
package
com
.
see
.
cloud
.
demo
;
import
com.see.cloud.common.security.annotation.EnableSeeResourceServer
;
import
com.see.cloud.common.swagger.annotation.EnableSeeDoc
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
/**
* @author see archetype
* <p>
* 项目启动类
*/
@EnableSeeDoc
(
"see"
)
@EnableSeeResourceServer
@EnableDiscoveryClient
@SpringBootApplication
public
class
DemoApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DemoApplication
.
class
,
args
);
}
}
see-demo-biz/src/main/java/com/see/cloud/demo/controller/package-info.java
0 → 100644
View file @
c8bceed4
package
com
.
see
.
cloud
.
demo
.
controller
;
\ No newline at end of file
see-demo-biz/src/main/java/com/see/cloud/demo/service/package-info.java
0 → 100644
View file @
c8bceed4
package
com
.
see
.
cloud
.
demo
.
service
;
\ No newline at end of file
see-demo-biz/src/main/resources/application.yml
0 → 100644
View file @
c8bceed4
server
:
port
:
4000
spring
:
application
:
name
:
@
artifactId@
cloud
:
nacos
:
username
:
@
nacos.username@
password
:
@
nacos.password@
discovery
:
server-addr
:
${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
config
:
server-addr
:
${spring.cloud.nacos.discovery.server-addr}
config
:
import
:
-
nacos:application-@profiles.active@.yml
-
nacos:${spring.application.name}-@profiles.active@.yml
\ No newline at end of file
see-demo-biz/src/main/resources/logback-spring.xml
0 → 100644
View file @
c8bceed4
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
scan=
"false"
>
<springProperty
scop=
"context"
name=
"spring.application.name"
source=
"spring.application.name"
defaultValue=
""
/>
<property
name=
"log.path"
value=
"logs/${spring.application.name}"
/>
<!-- 彩色日志格式 -->
<property
name=
"CONSOLE_LOG_PATTERN"
value=
"${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"
/>
<!-- 彩色日志依赖的渲染类 -->
<conversionRule
conversionWord=
"clr"
class=
"org.springframework.boot.logging.logback.ColorConverter"
/>
<conversionRule
conversionWord=
"wex"
class=
"org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"
/>
<conversionRule
conversionWord=
"wEx"
class=
"org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"
/>
<!-- Console log output -->
<appender
name=
"console"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
${CONSOLE_LOG_PATTERN}
</pattern>
</encoder>
</appender>
<!-- Log file debug output -->
<appender
name=
"debug"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${log.path}/debug.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<fileNamePattern>
${log.path}/%d{yyyy-MM, aux}/debug.%d{yyyy-MM-dd}.%i.log.gz
</fileNamePattern>
<maxFileSize>
50MB
</maxFileSize>
<maxHistory>
30
</maxHistory>
</rollingPolicy>
<encoder>
<pattern>
${CONSOLE_LOG_PATTERN}
</pattern>
</encoder>
</appender>
<!-- Log file error output -->
<appender
name=
"error"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<file>
${log.path}/error.log
</file>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<fileNamePattern>
${log.path}/%d{yyyy-MM}/error.%d{yyyy-MM-dd}.%i.log.gz
</fileNamePattern>
<maxFileSize>
50MB
</maxFileSize>
<maxHistory>
30
</maxHistory>
</rollingPolicy>
<encoder>
<pattern>
${CONSOLE_LOG_PATTERN}
</pattern>
</encoder>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
</filter>
</appender>
<!--nacos 心跳 INFO 屏蔽-->
<logger
name=
"com.alibaba.nacos"
level=
"OFF"
>
<appender-ref
ref=
"error"
/>
</logger>
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root
level=
"INFO"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"debug"
/>
<appender-ref
ref=
"error"
/>
</root>
</configuration>
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