chore: 初始化项目配置和示例代码

- 添加 .gitignore 文件,配置忽略的文件和目录
- 创建 compiler.xml,设置编译器配置和注解处理- 添加数据源配置和编码设置
- 新增示例控制器 ExampleController
- 创建项目根目录结构和基本配置文件
main
孙贺贺 6 days ago
parent 174a12a242
commit b6518d96eb

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="2b30066e-d17d-4f56-b7e3-9cb858f333e4" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/Campus_second-hand_trading_platform.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"customColor": "",
"associatedIndex": 8
}]]></component>
<component name="ProjectId" id="2os8cUmmlcOMfjAWQP89BPw32Ux" />
<component name="ProjectViewState">
<option name="autoscrollFromSource" value="true" />
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="false" />
<option name="showLibraryContents" value="true" />
<option name="showScratchesAndConsoles" value="false" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "main",
"kotlin-language-version-configured": "true",
"nodejs_package_manager_path": "npm",
"vue.rearranger.settings.migration": "true"
}
}]]></component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-jdk-9823dce3aa75-28b599e66164-intellij.indexing.shared.core-IU-242.23726.103" />
<option value="bundled-js-predefined-d6986cc7102b-5c90d61e3bab-JavaScript-IU-242.23726.103" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="2b30066e-d17d-4f56-b7e3-9cb858f333e4" name="Changes" comment="" />
<created>1731647002005</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1731647002005</updated>
<workItem from="1731647003871" duration="13000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
</project>

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="trading_platform" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="trading_platform" options="-parameters" />
</option>
</component>
</project>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="secondhandtransactions@localhost" uuid="27e105d3-7602-4a8a-b0d3-ab289a1b2fdb">
<driver-ref>mysql.8</driver-ref>
<synchronize>true</synchronize>
<imported>true</imported>
<remarks>$PROJECT_DIR$/src/main/resources/application.yml</remarks>
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://localhost:3306/secondhandtransactions?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false&amp;serverTimezone=Asia/Shanghai</jdbc-url>
<jdbc-additional-properties>
<property name="com.intellij.clouds.kubernetes.db.host.port" />
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
<property name="com.intellij.clouds.kubernetes.db.resource.type" value="Deployment" />
<property name="com.intellij.clouds.kubernetes.db.container.port" />
</jdbc-additional-properties>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK" />
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -0,0 +1,14 @@
package com.trading_platform.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class ExampleController {
@GetMapping("/example")
public String example() {
return "Hello, World!";
}
}

@ -0,0 +1,4 @@
com\trading_platform\config\OpenApiConfig.class
com\trading_platform\TradingPlatformApplication.class
com\trading_platform\interceptors\LoginInterceptor.class
com\trading_platform\config\WebConfig.class

@ -0,0 +1,13 @@
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\config\OpenApiConfig.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\config\WebConfig.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\controller\UsersController.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\entity\Result.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\entity\Users.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\exception\GlobalExceptionHandler.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\interceptors\LoginInterceptor.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\mapper\UsersMapper.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\service\impl\UsersServiceImpl.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\service\UsersService.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\TradingPlatformApplication.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\utils\JwtUtil.java
C:\Users\Admin\Desktop\Campus_second-hand_trading_platform\trading_platform\src\main\java\com\trading_platform\utils\Sha256Util.java
Loading…
Cancel
Save