Skip to content

Commit d35c891

Browse files
author
leijiankun
committed
Upgrade Spring Boot to version: 1.4.0.RELEASE, Spring Framework:4.2.7.RELEASE. Dependencies fix.
1 parent d394d2d commit d35c891

3 files changed

Lines changed: 37 additions & 22 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
build
44
bin
55
scripts
6+
classes
7+
out
68
production_app.properties
79
*.iml
10+
*.ipr
11+
*.iws
812
src/main/resources/resources/bower_components

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mysql -u root -p
4242
4343
# Install Python pygments
4444
apt-get install python-pip
45-
apt-get install pygments
45+
pip install pygments
4646
```
4747

4848
```
@@ -61,14 +61,25 @@ I recommend you import the source code into Intellij IDE to edit the code.
6161
./gradlew bootRun
6262
```
6363

64-
View `http://localhost:8080/` on your browser.
64+
## Development
65+
66+
**How to import the project into Intellij IDEA and run from the IDE?**
67+
68+
69+
1. Clone the project
70+
`git clone https://github.com/Raysmond/SpringBlog.git `
71+
2. Download all dependencies
72+
`cd SpringBlog `
73+
`./gradlew idea `
74+
3. Open the project in Intellij IDEA.
75+
4. Run `Application.java` as Java application.
76+
5. Preview: http://localhost:9000
77+
Admin: http://localhost:900/admin , the default admin account is: admin@admin.com, password: admin
6578

66-
### Todo
6779

68-
- Handling static web resources with `ResourceSolvers` and `ResourceTransformers` introduced in Spring Framework 4.1.
69-
- Awesome features are always welcome.
80+
> Lombok is required to run the project. You can install the plugin in Intellij IDEA.
81+
> Reference: https://github.com/mplushnikov/lombok-intellij-plugin
7082
71-
Welcome to contribute.
7283

7384
## Deployment
7485

build.gradle

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,28 @@ configurations {
2727

2828
dependencies {
2929
// spring boot
30-
compile "org.springframework.boot:spring-boot-starter-web:1.3.0.M5"
31-
compile "org.springframework.boot:spring-boot-starter-jetty"
32-
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
30+
compile "org.springframework.boot:spring-boot-starter-web:1.4.0.RELEASE"
31+
compile "org.springframework.boot:spring-boot-starter-jetty:1.4.0.RELEASE"
32+
compile "org.springframework.boot:spring-boot-starter-thymeleaf:1.4.0.RELEASE"
3333
compile "com.domingosuarez.boot:spring-boot-starter-jade4j:0.3.1"
34-
compile "org.springframework.boot:spring-boot-starter-redis"
35-
compile(group: 'org.springframework.boot', name: 'spring-boot-starter', version:'1.3.0.M5') {
34+
compile "org.springframework.boot:spring-boot-starter-redis:1.4.0.RELEASE"
35+
compile(group: 'org.springframework.boot', name: 'spring-boot-starter', version:'1.4.0.RELEASE') {
3636
exclude(module: 'spring-boot-starter-logging')
3737
}
38-
compile 'org.springframework.boot:spring-boot-starter-log4j:1.3.0.M5'
39-
compile 'org.springframework.boot:spring-boot-starter-data-jpa:1.3.0.M5'
40-
compile 'org.springframework.boot:spring-boot-starter-security:1.3.0.M5'
38+
compile 'org.springframework.boot:spring-boot-starter-log4j:1.4.0.RELEASE'
39+
compile 'org.springframework.boot:spring-boot-starter-data-jpa:1.4.0.RELEASE'
40+
compile 'org.springframework.boot:spring-boot-starter-security:1.4.0.RELEASE'
4141

4242
// spring framework
43-
compile 'org.springframework:spring-context:4.2.1.RELEASE'
44-
compile 'org.springframework:spring-webmvc:4.1.7.RELEASE'
43+
compile 'org.springframework:spring-context:4.2.7.RELEASE'
44+
compile 'org.springframework:spring-webmvc:4.2.7.RELEASE'
4545
compile 'org.springframework.security:spring-security-config:3.2.7.RELEASE'
4646
compile 'org.springframework.security:spring-security-web:3.2.7.RELEASE'
4747

4848
//persistence
4949
compile 'com.zaxxer:HikariCP:+'
50-
compile 'org.springframework:spring-orm:+'
51-
compile 'org.hibernate:hibernate-entitymanager:+'
50+
compile 'org.springframework:spring-orm:4.2.7.RELEASE'
51+
compile 'org.hibernate:hibernate-entitymanager:4.3.11.Final'
5252
compile 'javax.el:javax.el-api:+'
5353
compile 'org.hsqldb:hsqldb:+'
5454

@@ -61,17 +61,17 @@ dependencies {
6161
compile 'org.pygments:pygments:2.0.2'
6262

6363
// spring data
64-
compile 'org.springframework.data:spring-data-jpa:+'
64+
compile 'org.springframework.data:spring-data-jpa:1.10.0.RELEASE'
6565

6666
// cache
67-
compile 'org.springframework.data:spring-data-redis:1.6.0.RELEASE'
67+
compile 'org.springframework.data:spring-data-redis:1.7.0.RELEASE'
6868
compile 'redis.clients:jedis:2.7.3'
6969

7070
// MySQL
7171
compile 'mysql:mysql-connector-java:+'
7272

7373
// Validation
74-
compile 'org.hibernate:hibernate-validator:+'
74+
compile 'org.hibernate:hibernate-validator:4.3.2.Final'
7575

7676
// Logging
7777
compile 'ch.qos.logback:logback-classic:1.1.3'
@@ -98,7 +98,7 @@ dependencies {
9898
compile 'org.webjars:ace:1.2.0'
9999

100100
// test
101-
testCompile("org.springframework.boot:spring-boot-starter-test")
101+
testCompile("org.springframework.boot:spring-boot-starter-test:1.4.0.RELEASE")
102102
testCompile 'junit:junit:+'
103103
testCompile 'org.mockito:mockito-core:+'
104104
testCompile 'org.assertj:assertj-core:+'

0 commit comments

Comments
 (0)