Skip to content

Commit 91739ff

Browse files
committed
refactoring of java classes
1 parent e1e428c commit 91739ff

File tree

3 files changed

+57
-55
lines changed

3 files changed

+57
-55
lines changed

src/main/java/org/woehlke/java/simpleworklist/config/SimpleworklistProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@Component
1414
@Getter
1515
@Setter
16-
@ConfigurationProperties(prefix="org.woehlke.simpleworklist")
16+
@ConfigurationProperties(prefix="org.woehlke.java.simpleworklist")
1717
@Validated
1818
public class SimpleworklistProperties {
1919

src/main/java/org/woehlke/java/simpleworklist/config/WebMvcConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@EnableWebMvc
3030
@EnableSpringDataWebSupport
3131
@EnableJpaRepositories({
32-
"org.woehlke.simpleworklist"
32+
"org.woehlke.java.simpleworklist"
3333
})
3434
@EnableConfigurationProperties({
3535
SimpleworklistProperties.class

src/test/resources/application.yml

Lines changed: 55 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -51,58 +51,59 @@ spring:
5151
continue-on-error: true
5252
org:
5353
woehlke:
54-
simpleworklist:
55-
mail:
56-
host: ${SIMPLEWORKLIST_MAIL_SMTP_HOST}
57-
port: ${SIMPLEWORKLIST_MAIL_SMTP_PORT}
58-
username: ${SIMPLEWORKLIST_MAIL_SMTP_USERNAME}
59-
password: ${SIMPLEWORKLIST_MAIL_SMTP_PASSWORD}
60-
auth: true
61-
sslEnable: true
62-
socketFactoryPort: 465
63-
socketFactoryClass: javax.net.ssl.SSLSocketFactory
64-
registration:
65-
maxRetries: 5
66-
ttlEmailVerificationRequest: 86400000
67-
urlHost: ${SIMPLEWORKLIST_URL_APP_HOST}
68-
mailFrom: ${SIMPLEWORKLIST_MAIL_FROM}
69-
webMvc:
70-
controllerPageSize: 10
71-
staticResourceHandler:
72-
- "/css"
73-
- "/img"
74-
- "/js"
75-
dynamicResourceHandler:
76-
- "/webjars"
77-
webSecurity:
78-
strengthBCryptPasswordEncoder: 10
79-
# iterations: ${SIMPLEWORKLIST_USER_ITERATIONS}
80-
# hashWidth: ${SIMPLEWORKLIST_USER_HASH_WIDTH}
81-
# secret: ${SIMPLEWORKLIST_USER_SECRET}
82-
loginProcessingUrl: "/j_spring_security_check"
83-
logoutUrl: "/user/logout"
84-
cookieNamesToClear:
85-
- "JSESSIONID"
86-
invalidateHttpSession: true
87-
defaultSuccessUrl: "/"
88-
failureForwardUrl: "/user/login?login_error=1"
89-
usernameParameter: "j_username"
90-
passwordParameter: "j_password"
91-
loginPage: "/user/login"
92-
antPatternsPublic:
93-
- "/webjars/**"
94-
- "/css/**"
95-
- "/img/**"
96-
- "/js/**"
97-
- "/favicon.ico"
98-
- "/user/login*"
99-
- "/user/register*"
100-
- "/user/register/**"
101-
- "/user/register/confirm/**"
102-
- "/user/resetPassword*"
103-
- "/user/resetPassword/**"
104-
- "/user/resetPassword/confirm/**"
105-
- "/error*"
54+
java:
55+
simpleworklist:
56+
mail:
57+
host: ${SIMPLEWORKLIST_MAIL_SMTP_HOST}
58+
port: ${SIMPLEWORKLIST_MAIL_SMTP_PORT}
59+
username: ${SIMPLEWORKLIST_MAIL_SMTP_USERNAME}
60+
password: ${SIMPLEWORKLIST_MAIL_SMTP_PASSWORD}
61+
auth: true
62+
sslEnable: true
63+
socketFactoryPort: 465
64+
socketFactoryClass: javax.net.ssl.SSLSocketFactory
65+
registration:
66+
maxRetries: 5
67+
ttlEmailVerificationRequest: 86400000
68+
urlHost: ${SIMPLEWORKLIST_URL_APP_HOST}
69+
mailFrom: ${SIMPLEWORKLIST_MAIL_FROM}
70+
webMvc:
71+
controllerPageSize: 10
72+
staticResourceHandler:
73+
- "/css"
74+
- "/img"
75+
- "/js"
76+
dynamicResourceHandler:
77+
- "/webjars"
78+
webSecurity:
79+
strengthBCryptPasswordEncoder: 10
80+
# iterations: ${SIMPLEWORKLIST_USER_ITERATIONS}
81+
# hashWidth: ${SIMPLEWORKLIST_USER_HASH_WIDTH}
82+
# secret: ${SIMPLEWORKLIST_USER_SECRET}
83+
loginProcessingUrl: "/j_spring_security_check"
84+
logoutUrl: "/user/logout"
85+
cookieNamesToClear:
86+
- "JSESSIONID"
87+
invalidateHttpSession: true
88+
defaultSuccessUrl: "/"
89+
failureForwardUrl: "/user/login?login_error=1"
90+
usernameParameter: "j_username"
91+
passwordParameter: "j_password"
92+
loginPage: "/user/login"
93+
antPatternsPublic:
94+
- "/webjars/**"
95+
- "/css/**"
96+
- "/img/**"
97+
- "/js/**"
98+
- "/favicon.ico"
99+
- "/user/login*"
100+
- "/user/register*"
101+
- "/user/register/**"
102+
- "/user/register/confirm/**"
103+
- "/user/resetPassword*"
104+
- "/user/resetPassword/**"
105+
- "/user/resetPassword/confirm/**"
106+
- "/error*"
106107
logging:
107108
level:
108109
root: INFO
@@ -178,4 +179,5 @@ logging:
178179
qos: WARN
179180
postgresql: WARN
180181
woehlke:
181-
simpleworklist: INFO
182+
java:
183+
simpleworklist: INFO

0 commit comments

Comments
 (0)