Skip to content

Commit 432e9bd

Browse files
committed
update to Springboot 3.0.2
1 parent d6972f9 commit 432e9bd

File tree

3 files changed

+40
-36
lines changed

3 files changed

+40
-36
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22
.settings/
33
.project
44
.classpath
5+
.idea/

pom.xml

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.jeemv.springboot.vuejs</groupId>
88
<artifactId>springboot-vuejs</artifactId>
9-
<version>1.0.25</version>
9+
<version>1.0.26</version>
1010

1111
<name>springboot-vuejs</name>
1212
<url>https://github.com/jeeMv/SpringBoot-VueJS</url>
@@ -33,62 +33,66 @@
3333
</scm>
3434
<properties>
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36-
<maven.compiler.source>14</maven.compiler.source>
37-
<maven.compiler.target>14</maven.compiler.target>
36+
<maven.compiler.source>17</maven.compiler.source>
37+
<maven.compiler.target>17</maven.compiler.target>
3838
</properties>
3939

4040
<dependencies>
41-
<dependency>
42-
<groupId>junit</groupId>
43-
<artifactId>junit</artifactId>
44-
<version>4.13.2</version>
45-
<scope>test</scope>
46-
</dependency>
41+
<!-- https://mvnrepository.com/artifact/junit/junit -->
42+
<dependency>
43+
<groupId>junit</groupId>
44+
<artifactId>junit</artifactId>
45+
<version>4.13.2</version>
46+
<scope>test</scope>
47+
</dependency>
48+
4749
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
4850
<dependency>
4951
<groupId>com.fasterxml.jackson.core</groupId>
5052
<artifactId>jackson-core</artifactId>
51-
<version>[2.11.0,)</version>
53+
<version>[2.14.0,)</version>
5254
</dependency>
5355
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
5456
<dependency>
5557
<groupId>com.fasterxml.jackson.core</groupId>
5658
<artifactId>jackson-databind</artifactId>
57-
<version>[2.13.0,)</version>
59+
<version>[2.14.2,)</version>
5860
</dependency>
5961
<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->
6062
<dependency>
6163
<groupId>org.aspectj</groupId>
6264
<artifactId>aspectjweaver</artifactId>
63-
<version>1.9.6</version>
64-
</dependency>
65-
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
66-
<dependency>
67-
<groupId>org.springframework</groupId>
68-
<artifactId>spring-context</artifactId>
69-
<version>5.3.23</version>
65+
<version>1.9.19</version>
7066
</dependency>
7167

68+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
69+
<dependency>
70+
<groupId>org.springframework</groupId>
71+
<artifactId>spring-context</artifactId>
72+
<version>6.0.4</version>
73+
</dependency>
74+
75+
7276
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
7377
<dependency>
7478
<groupId>org.springframework.boot</groupId>
7579
<artifactId>spring-boot-starter-web</artifactId>
76-
<version>2.7.3</version>
80+
<version>3.0.2</version>
7781
</dependency>
7882

7983
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor -->
8084
<dependency>
8185
<groupId>org.springframework.boot</groupId>
8286
<artifactId>spring-boot-configuration-processor</artifactId>
83-
<version>2.7.3</version>
87+
<version>3.0.2</version>
8488
</dependency>
8589

86-
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
87-
<dependency>
88-
<groupId>com.fasterxml.jackson.datatype</groupId>
89-
<artifactId>jackson-datatype-jsr310</artifactId>
90-
<version>2.13.4</version>
91-
</dependency>
90+
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
91+
<dependency>
92+
<groupId>com.fasterxml.jackson.datatype</groupId>
93+
<artifactId>jackson-datatype-jsr310</artifactId>
94+
<version>2.14.2</version>
95+
</dependency>
9296

9397
</dependencies>
9498

src/main/java/io/github/jeemv/springboot/vuejs/VueJS.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import java.util.Map;
55
import java.util.Map.Entry;
66

7-
import javax.annotation.PostConstruct;
8-
7+
import jakarta.annotation.PostConstruct;
98
import org.slf4j.Logger;
109
import org.slf4j.LoggerFactory;
1110
import org.springframework.beans.factory.annotation.Autowired;
@@ -25,7 +24,7 @@
2524
* VueJS instance This class is part of springBoot-VueJS
2625
*
2726
* @author jcheron myaddressmail@gmail.com
28-
* @version 1.0.3
27+
* @version 1.0.4
2928
*
3029
*/
3130
@Component
@@ -39,7 +38,7 @@ public class VueJS extends AbstractVueJS {
3938

4039
@Autowired(required = false)
4140
protected VueJSAutoConfiguration vueJSAutoConfiguration;
42-
private Logger logger;
41+
private final Logger logger;
4342

4443
@PostConstruct
4544
public void init() {
@@ -93,23 +92,23 @@ public void setDelimiters(String start, String end) {
9392
*/
9493
@Override
9594
public String getScript() {
96-
String script = "";
95+
StringBuilder script = new StringBuilder();
9796
if (useAxios) {
98-
script = "Vue.prototype.$http = axios;\n";
97+
script = new StringBuilder("Vue.prototype.$http = axios;\n");
9998
}
10099
try {
101100
for (Entry<String, VueComponent> entry : globalComponents.entrySet()) {
102-
script += entry.getValue();
101+
script.append(entry.getValue());
103102
}
104103
for (Entry<String, AbstractVueComposition> entry : globalElements.entrySet()) {
105-
script += entry.getValue().getScript();
104+
script.append(entry.getValue().getScript());
106105
}
107-
script += "new Vue(" + JsUtils.objectToJSON(this) + ");";
106+
script.append("new Vue(").append(JsUtils.objectToJSON(this)).append(");");
108107
return "<script>" + script + "</script>";
109108
} catch (JsonProcessingException e) {
110109
e.printStackTrace();
111110
}
112-
return script;
111+
return script.toString();
113112
}
114113

115114
/**

0 commit comments

Comments
 (0)