Skip to content

Commit

Permalink
fix shoulder-archetype-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaLym committed Jan 3, 2025
1 parent 18ce8ee commit 81194b8
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

![](https://img.shields.io/badge/👀%20即将发布-1.0.0-c0ce28.svg)

[![](https://img.shields.io/badge/🚀%20Release%20Version-0.8.1-blue.svg)](https://github.com/ChinaLym/shoulder-framework/releases/tag/v0.8.1)
[![](https://img.shields.io/badge/🌱%20Spring%20Boot%20Version-3.2.x-blue.svg)](https://spring.io/projects/spring-boot)
[![](https://img.shields.io/badge/🚀%20Release%20Version-0.8.1-blue.svg)](https://github.com/ChinaLym/shoulder-framework/releases/tag/v0.8.1)
[![](https://img.shields.io/badge/🌱%20Spring%20Boot%20Version-3.2.x-blue.svg)](https://spring.io/projects/spring-boot)

# 📖介绍 [English language](README.md)

Expand Down Expand Up @@ -110,7 +110,7 @@ mvn archetype:generate \
# ❓常见问题 & FAQ

### Q:是重复造轮子吗?
非也,`Shoulder`设计理念如命名——“站在巨人肩膀上”,不倡导重复造轮子,重在将“巨人的肩膀”(优秀的三方包)安全高效地带给使用者,让开发者放心地感受前“巨人肩膀”的魅力🤩。
非也,`Shoulder`设计理念如命名——“站在巨人肩膀上”,不倡导重复造轮子,重在将“巨人的肩膀”(业界卓越的代码与设计)安全高效地带给使用者,让开发者放心地感受 “肩膀”的魅力🤩。

更多: [功能介绍.md](doc/ability-intro.md)[工程目录 & 模块划分](doc/module-intro.md)[设计理念 & 发展路线](ROADMAP.MD)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<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/maven-v4_0_0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
Expand All @@ -20,7 +20,7 @@
<properties>
<java.version>17</java.version>
<shoulder.version>1.0.0-M3</shoulder.version><!-- shoulder-version -->

<appName>${project.name}</appName>
<errorCodePrefix>"0x000b"</errorCodePrefix><!-- todo 请确保每个应用错误码唯一 -->
</properties>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
package ${package}.controller;

import org.shoulder.core.log.AppLoggers;
import org.shoulder.core.log.Logger;
import org.shoulder.web.annotation.SkipResponseWrap;
Expand All @@ -21,8 +23,6 @@ public class DemoController {


/**
* 访问 http://localhost:8080/demo/test 测试
*/ /**
* 访问 <a href="http://localhost:8080/demo/hello">http://localhost:8080/demo/hello</a> 进行测试
*/
@SkipResponseWrap // 跳过响应值包装
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
application:
name: @project.name@
name: @appName@

datasource:
type: com.zaxxer.hikari.HikariDataSource
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Shoulder</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #d7e7e7;
color: #333;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
}
header {
background: #d5dd44;
color: #000;
padding: 20px;
text-align: center;
}
header h1 {
margin: 0;
}
nav {
background: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px 15px;
display: inline-block;
}
nav a:hover {
background: #555;
}
.main-content {
padding: 20px;
background: #fff;
margin-top: 20px;
}
footer {
background: #333;
color: #fff;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<div class="container">
<h1>Shoulder - Simplifying Development</h1>
</div>
</header>

<nav>
<div class="container">
<a target="_blank" href="https://doc.itlym.cn/shoulder.html">Features & Documentation</a>
<a target="_blank" href="https://doc.itlym.cn/shoulder_changelog.html">Version Changes</a>
<a target="_blank" href="https://github.com/ChinaLym/shoulder-framework/">GitHub</a>
<a target="_blank" href="https://gitee.com/ChinaLym/shoulder-framework/">Gitee</a>
<a target="_blank" href="https://gitcode.com/ChinaLym/shoulder-framework/">GitCode</a>
</div>
</nav>

<div class="main-content container">
<section id="features">
<h2>Features</h2>
<p><a target="_blank" href="https://doc.itlym.cn/shoulder.html">Discover the core features that make coding happier😀.</a></p>
</section>

<section id="docs">
<h2>Documentation</h2>
<p><a target="_blank" href="https://doc.itlym.cn/shoulder_start.html">Find comprehensive guides and tutorials to get started.🚀.</a></p>
</section>

<section id="community">
<h2>Community</h2>
<p>Share ideas and get support in 💬
<a target="_blank" href="https://github.com/ChinaLym/shoulder-framework/">GitHub</a> or
<a target="_blank" href="https://gitee.com/ChinaLym/shoulder-framework/">Gitee</a> or
<a target="_blank" href="https://gitcode.com/ChinaLym/shoulder-framework/">GitCode</a>
</p>
</section>

<section id="contact">
<h2>Contact Author</h2>
<p><a href="mailto:cn_lym@foxmail.com">Send a email to auth and get feedback / job. 📧</a></p>
</section>
</div>

<footer>
<div class="container">
<p>&copy; 2024 Shoulder. All rights reserved.</p>
</div>
</footer>
<script src="https://hishoulder.itlym.cn/showDemo/v1.0.0"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class WebExtDictionaryAutoConfiguration {

@AutoConfiguration(after = {I18nAutoConfiguration.class})
@ConditionalOnClass(value = {DictionaryEnumStore.class})
@ConditionalOnProperty(value = "shoulder.web.ext.dictionary.storage", havingValue = "ENUM")
@ConditionalOnProperty(value = "shoulder.web.ext.dictionary.storage", havingValue = "ENUM", matchIfMissing = true)
public static class BaseOnEnumDictionaryConfiguration {

/**
Expand Down

0 comments on commit 81194b8

Please sign in to comment.