Skip to content

Commit f3d2e12

Browse files
committed
update to spring boot 2.7.0
1 parent 6638af9 commit f3d2e12

File tree

12 files changed

+26
-28
lines changed

12 files changed

+26
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Extendable store types. JDBC store as default.
1212
<dependency>
1313
<groupId>com.ttulka.spring.boot.configstore</groupId>
1414
<artifactId>configuration-properties-store-jdbc-spring-boot-starter</artifactId>
15-
<version>1.3.5</version>
15+
<version>1.4.0</version>
1616
</dependency>
1717
```
1818

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.ttulka.spring.boot.configstore</groupId>
88
<artifactId>configuration-properties-store-parent</artifactId>
9-
<version>1.3.5-SNAPSHOT</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>configuration-properties-store-api</artifactId>

examples/sample-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>com.ttulka.spring.configstore</groupId>
1212
<artifactId>sample-app</artifactId>
13-
<version>1.3.5-SNAPSHOT</version>
13+
<version>1.4.0-SNAPSHOT</version>
1414

1515
<dependencies>
1616
<dependency>

jdbc-store/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.ttulka.spring.boot.configstore</groupId>
88
<artifactId>configuration-properties-store-parent</artifactId>
9-
<version>1.3.5-SNAPSHOT</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>configuration-properties-store-jdbc</artifactId>
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.ttulka.spring.boot.configstore</groupId>
2121
<artifactId>configuration-properties-store-api</artifactId>
22-
<version>1.3.5-SNAPSHOT</version>
22+
<version>1.4.0-SNAPSHOT</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.springframework</groupId>

jdbc-store/src/main/java/com/ttulka/spring/boot/configstore/jdbc/FindConfigurationProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class FindConfigurationProperties {
2424
*/
2525
public Map<String, Object> all() {
2626
return jdbcTemplate.queryForList(
27-
"SELECT name, value FROM " + new SqlIdentifier(table)).stream()
28-
.collect(toMap(rs -> (String) rs.get("name"), rs -> rs.get("value")));
27+
"SELECT prop_name, prop_value FROM " + new SqlIdentifier(table)).stream()
28+
.collect(toMap(rs -> (String) rs.get("prop_name"), rs -> rs.get("prop_value")));
2929
}
3030
}

jdbc-store/src/main/java/com/ttulka/spring/boot/configstore/jdbc/InitDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ private void createSchema(SqlIdentifier schemaName) {
4242

4343
private void createTable(SqlIdentifier tableName) {
4444
jdbcTemplate.update("CREATE TABLE IF NOT EXISTS " + tableName +
45-
" (name VARCHAR(255) PRIMARY KEY, value VARCHAR(255))");
45+
" (prop_name VARCHAR(255) PRIMARY KEY, prop_value VARCHAR(255));");
4646
}
4747
}

jdbc-store/src/main/java/com/ttulka/spring/boot/configstore/jdbc/UpdateConfigurationProperty.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ private void insertProperty(String name, String value) {
3939
}
4040

4141
private void updateProperty(String name, String value) {
42-
jdbcTemplate.update("UPDATE " + new SqlIdentifier(table) + " SET value = ? WHERE name = ?",
42+
jdbcTemplate.update("UPDATE " + new SqlIdentifier(table) + " SET prop_value = ? WHERE prop_name = ?",
4343
value, name);
4444
}
4545

4646
private void deleteProperty(String name) {
47-
jdbcTemplate.update("DELETE FROM " + new SqlIdentifier(table) + " WHERE name = ?",
47+
jdbcTemplate.update("DELETE FROM " + new SqlIdentifier(table) + " WHERE prop_name = ?",
4848
name);
4949
}
5050

5151
private boolean hasProperty(String name) {
52-
return jdbcTemplate.queryForObject("SELECT COUNT(*) FROM " + new SqlIdentifier(table) + " WHERE name = ?",
52+
return jdbcTemplate.queryForObject("SELECT COUNT(*) FROM " + new SqlIdentifier(table) + " WHERE prop_name = ?",
5353
Integer.class, name) > 0;
5454
}
5555
}

pom.xml

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

77
<groupId>com.ttulka.spring.boot.configstore</groupId>
88
<artifactId>configuration-properties-store-parent</artifactId>
9-
<version>1.3.5-SNAPSHOT</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<name>Configuration Properties Store for Spring Boot - Parent</name>
1313
<description>Mutable persistent configuration properties that survive an application restart.</description>
1414
<url>https://github.com/ttulka/spring-boot-configuration-properties-store</url>
1515

1616
<properties>
17-
<spring.boot.version>2.6.1</spring.boot.version>
17+
<spring.boot.version>2.7.0</spring.boot.version>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
</properties>
2020

@@ -48,18 +48,18 @@
4848
<plugin>
4949
<groupId>org.apache.maven.plugins</groupId>
5050
<artifactId>maven-surefire-plugin</artifactId>
51-
<version>3.0.0-M5</version>
51+
<version>3.0.0-M6</version>
5252
</plugin>
5353
</plugins>
5454
</pluginManagement>
5555
<plugins>
5656
<plugin>
5757
<groupId>org.apache.maven.plugins</groupId>
5858
<artifactId>maven-compiler-plugin</artifactId>
59-
<version>3.8.1</version>
59+
<version>3.10.1</version>
6060
<configuration>
61-
<source>11</source>
62-
<target>11</target>
61+
<source>17</source>
62+
<target>17</target>
6363
</configuration>
6464
</plugin>
6565
<plugin>
@@ -77,7 +77,7 @@
7777
<plugins>
7878
<plugin>
7979
<artifactId>maven-javadoc-plugin</artifactId>
80-
<version>3.3.0</version>
80+
<version>3.4.0</version>
8181
<executions>
8282
<execution>
8383
<id>attach-javadocs</id>

starter-base/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.ttulka.spring.boot.configstore</groupId>
88
<artifactId>configuration-properties-store-parent</artifactId>
9-
<version>1.3.5-SNAPSHOT</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>configuration-properties-store-spring-boot-starter-base</artifactId>
@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.ttulka.spring.boot.configstore</groupId>
2121
<artifactId>configuration-properties-store-api</artifactId>
22-
<version>1.3.5-SNAPSHOT</version>
22+
<version>1.4.0-SNAPSHOT</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.springframework.boot</groupId>

starter-jdbc/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.ttulka.spring.boot.configstore</groupId>
88
<artifactId>configuration-properties-store-parent</artifactId>
9-
<version>1.3.5-SNAPSHOT</version>
9+
<version>1.4.0-SNAPSHOT</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>configuration-properties-store-jdbc-spring-boot-starter</artifactId>
@@ -19,17 +19,17 @@
1919
<dependency>
2020
<groupId>com.ttulka.spring.boot.configstore</groupId>
2121
<artifactId>configuration-properties-store-api</artifactId>
22-
<version>1.3.5-SNAPSHOT</version>
22+
<version>1.4.0-SNAPSHOT</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>com.ttulka.spring.boot.configstore</groupId>
2626
<artifactId>configuration-properties-store-spring-boot-starter-base</artifactId>
27-
<version>1.3.5-SNAPSHOT</version>
27+
<version>1.4.0-SNAPSHOT</version>
2828
</dependency>
2929
<dependency>
3030
<groupId>com.ttulka.spring.boot.configstore</groupId>
3131
<artifactId>configuration-properties-store-jdbc</artifactId>
32-
<version>1.3.5-SNAPSHOT</version>
32+
<version>1.4.0-SNAPSHOT</version>
3333
</dependency>
3434
<dependency>
3535
<groupId>org.springframework.boot</groupId>

0 commit comments

Comments
 (0)