Skip to content

Commit 0a6de8d

Browse files
committed
DataJPA基础环境配置
0 parents  commit 0a6de8d

File tree

5 files changed

+260
-0
lines changed

5 files changed

+260
-0
lines changed

.gitignore

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# Typescript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
### macOS template
63+
# General
64+
.DS_Store
65+
.AppleDouble
66+
.LSOverride
67+
68+
# Icon must end with two \r
69+
Icon
70+
71+
# Thumbnails
72+
._*
73+
74+
# Files that might appear in the root of a volume
75+
.DocumentRevisions-V100
76+
.fseventsd
77+
.Spotlight-V100
78+
.TemporaryItems
79+
.Trashes
80+
.VolumeIcon.icns
81+
.com.apple.timemachine.donotpresent
82+
83+
# Directories potentially created on remote AFP share
84+
.AppleDB
85+
.AppleDesktop
86+
Network Trash Folder
87+
Temporary Items
88+
.apdisk
89+
### Java template
90+
# Compiled class file
91+
*.class
92+
93+
# Log file
94+
*.log
95+
96+
# BlueJ files
97+
*.ctxt
98+
99+
# Mobile Tools for Java (J2ME)
100+
.mtj.tmp/
101+
102+
# Package Files #
103+
*.jar
104+
*.war
105+
*.ear
106+
*.zip
107+
*.tar.gz
108+
*.rar
109+
110+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
111+
hs_err_pid*
112+
### JetBrains template
113+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
114+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
115+
116+
# User-specific stuff:
117+
.idea/
118+
src/main/resources/static/
119+
*.iml
120+
# Sensitive or high-churn files:
121+
.idea/**/dataSources/
122+
.idea/**/dataSources.ids
123+
.idea/**/dataSources.xml
124+
.idea/**/dataSources.local.xml
125+
.idea/**/sqlDataSources.xml
126+
.idea/**/dynamic.xml
127+
.idea/**/uiDesigner.xml
128+
129+
# Gradle:
130+
.idea/**/gradle.xml
131+
.idea/**/libraries
132+
133+
# CMake
134+
cmake-build-debug/
135+
136+
# Mongo Explorer plugin:
137+
.idea/**/mongoSettings.xml
138+
139+
## File-based project format:
140+
*.iws
141+
142+
## Plugin-specific files:
143+
144+
# IntelliJ
145+
out/
146+
147+
# mpeltonen/sbt-idea plugin
148+
.idea_modules/
149+
150+
# JIRA plugin
151+
atlassian-ide-plugin.xml
152+
153+
# Cursive Clojure plugin
154+
.idea/replstate.xml
155+
156+
# Crashlytics plugin (for Android Studio and IntelliJ)
157+
com_crashlytics_export_strings.xml
158+
crashlytics.properties
159+
crashlytics-build.properties
160+
fabric.properties
161+
### Maven template
162+
target/
163+
pom.xml.tag
164+
pom.xml.releaseBackup
165+
pom.xml.versionsBackup
166+
pom.xml.next
167+
release.properties
168+
dependency-reduced-pom.xml
169+
buildNumber.properties
170+
.mvn/timing.properties
171+
172+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
173+
!/.mvn/wrapper/maven-wrapper.jar

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SpringBoot DataJPA Integration
2+
---
3+
4+
- 相关视频地址
5+
6+
[Spring Boot整合DataJPA数据库操作](https://www.edurt.com/course/78)
7+
8+
- 相关文档地址
9+
10+
- [知识库](http://wiki.ttxit.com/pages/viewpage.action?pageId=16318795)

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>com.edurt</groupId>
9+
<artifactId>springboot-datajpa-integration</artifactId>
10+
<version>1.0.0</version>
11+
<packaging>jar</packaging>
12+
13+
<name>springboot-datajpa-integration</name>
14+
15+
<parent>
16+
<groupId>org.springframework.boot</groupId>
17+
<artifactId>spring-boot-starter-parent</artifactId>
18+
<version>1.5.9.RELEASE</version>
19+
</parent>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-web</artifactId>
25+
</dependency>
26+
<!-- 引入DataJPA所需依赖(使我们的项目支持DataJPA) 默认使用的是内存数据库 -->
27+
<dependency>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-starter-data-jpa</artifactId>
30+
</dependency>
31+
<!-- 使用第三方数据库, 比如MySQL -->
32+
<dependency>
33+
<groupId>mysql</groupId>
34+
<artifactId>mysql-connector-java</artifactId>
35+
</dependency>
36+
</dependencies>
37+
38+
</project>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/**
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
* <p>
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
* <p>
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
package com.edurt;
19+
20+
import org.springframework.boot.SpringApplication;
21+
import org.springframework.boot.autoconfigure.SpringBootApplication;
22+
23+
/**
24+
* SpringBootDataJPAIntegrationLaunch <br/>
25+
* 描述 : SpringBootDataJPAIntegrationLaunch <br/>
26+
* 作者 : qianmoQ <br/>
27+
* 版本 : 1.0 <br/>
28+
* 创建时间 : 2018-04-25 下午10:41 <br/>
29+
* 联系作者 : <a href="mailTo:[email protected]">qianmoQ</a>
30+
*/
31+
@SpringBootApplication
32+
public class SpringBootDataJPAIntegrationLaunch {
33+
34+
public static void main(String[] args) {
35+
SpringApplication.run(SpringBootDataJPAIntegrationLaunch.class, args);
36+
}
37+
38+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package com.edurt;

0 commit comments

Comments
 (0)