Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sso
Commits
c08c9937
Commit
c08c9937
authored
Jul 05, 2019
by
曲欣红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.egolm.com/key/sso.git
parents
d60ca77d
eacd49ef
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
132 additions
and
108 deletions
+132
-108
pom.xml
pom.xml
+8
-0
SSOApplication.java
src/main/java/com/egolm/sso/SSOApplication.java
+3
-2
DataSourceConfig.java
src/main/java/com/egolm/sso/config/DataSourceConfig.java
+40
-0
WsConfig.java
src/main/java/com/egolm/sso/config/WsConfig.java
+4
-4
MaterialMasterService.java
...ain/java/com/egolm/sso/service/MaterialMasterService.java
+12
-0
XsipSdService.java
src/main/java/com/egolm/sso/service/XsipSdService.java
+0
-51
MaterialMasterServiceImpl.java
...com/egolm/sso/service/impl/MaterialMasterServiceImpl.java
+23
-0
XsipSdServiceImpl.java
...in/java/com/egolm/sso/service/impl/XsipSdServiceImpl.java
+0
-47
application-dev.properties
src/main/resources/application-dev.properties
+0
-2
application-dev.yml
src/main/resources/application-dev.yml
+21
-0
application-pro.properties
src/main/resources/application-pro.properties
+0
-2
application-pro.yml
src/main/resources/application-pro.yml
+21
-0
No files found.
pom.xml
View file @
c08c9937
...
...
@@ -38,6 +38,10 @@
<artifactId>
cxf-spring-boot-starter-jaxws
</artifactId>
<version>
3.3.2
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jdbc
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
...
...
@@ -83,6 +87,10 @@
<artifactId>
javax.ws.rs-api
</artifactId>
<version>
2.1.1
</version>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
...
...
src/main/java/com/egolm/sso/SSOApplication.java
View file @
c08c9937
...
...
@@ -2,10 +2,11 @@ package com.egolm.sso;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
@SpringBootApplication
(
exclude
=
{
DataSourceAutoConfiguration
.
class
})
@SpringBootApplication
@EnableTransactionManagement
public
class
SSOApplication
{
private
static
ApplicationContext
applicationContext
;
...
...
src/main/java/com/egolm/sso/config/DataSourceConfig.java
0 → 100644
View file @
c08c9937
package
com
.
egolm
.
sso
.
config
;
import
javax.sql.DataSource
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.boot.jdbc.DataSourceBuilder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.datasource.DataSourceTransactionManager
;
import
org.springframework.transaction.PlatformTransactionManager
;
import
com.alibaba.druid.pool.DruidDataSource
;
@Configuration
public
class
DataSourceConfig
{
@Bean
@Primary
@ConfigurationProperties
(
prefix
=
"spring.datasource"
)
public
DataSource
getDataSource
()
{
return
DataSourceBuilder
.
create
().
type
(
DruidDataSource
.
class
).
build
();
}
@Bean
@Primary
public
PlatformTransactionManager
getTransactionManager
(
DataSource
dataSource
)
{
return
new
DataSourceTransactionManager
(
dataSource
);
}
@Bean
@Primary
public
JdbcTemplate
getJdbcTemplate
(
DataSource
dataSource
)
{
JdbcTemplate
jdbcTemplate
=
new
JdbcTemplate
();
jdbcTemplate
.
setDataSource
(
dataSource
);
return
jdbcTemplate
;
}
}
\ No newline at end of file
src/main/java/com/egolm/sso/config/WsConfig.java
View file @
c08c9937
...
...
@@ -19,7 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
com.egolm.sso.service.
XsipSd
Service
;
import
com.egolm.sso.service.
MaterialMaster
Service
;
@Configuration
public
class
WsConfig
{
...
...
@@ -31,13 +31,13 @@ public class WsConfig {
WSS4JInInterceptor
authInterceptor
;
@Autowired
XsipSdService
xsipSd
Service
;
MaterialMasterService
materialMaster
Service
;
@Bean
public
Endpoint
endpoint
()
{
EndpointImpl
endpoint
=
new
EndpointImpl
(
bus
,
xsipSd
Service
);
EndpointImpl
endpoint
=
new
EndpointImpl
(
bus
,
materialMaster
Service
);
endpoint
.
setInInterceptors
(
Arrays
.
asList
(
authInterceptor
));
endpoint
.
publish
(
"/
xsip
"
);
endpoint
.
publish
(
"/
material_master
"
);
return
endpoint
;
}
...
...
src/main/java/com/egolm/sso/service/MaterialMasterService.java
0 → 100644
View file @
c08c9937
package
com
.
egolm
.
sso
.
service
;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
@WebService
(
targetNamespace
=
"http://service.sso.egolm.com"
)
public
interface
MaterialMasterService
{
@WebMethod
public
void
execute
(
String
xml
);
}
src/main/java/com/egolm/sso/service/XsipSdService.java
deleted
100644 → 0
View file @
d60ca77d
package
com
.
egolm
.
sso
.
service
;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
@WebService
(
targetNamespace
=
"http://service.sso.egolm.com"
)
public
interface
XsipSdService
{
/**
* 001
* @param xml
*/
@WebMethod
public
void
pushMaterialMaster
(
String
xml
);
/**
* 002
* @param xml
*/
@WebMethod
public
void
pushPriceList
(
String
xml
);
/**
* 005
* @param xml
*/
@WebMethod
public
void
pushProFormaInvoice
(
String
xml
);
/**
* 007
* @param xml
*/
@WebMethod
public
void
pushShippingNotfirmation
(
String
xml
);
/**
* 008
* @param xml
*/
@WebMethod
public
void
pushSoConfirmQuotation
(
String
xml
);
/**
* 009
* @param xml
*/
@WebMethod
public
void
pushSoDnDeletion
(
String
xml
);
}
src/main/java/com/egolm/sso/service/impl/MaterialMasterServiceImpl.java
0 → 100644
View file @
c08c9937
package
com
.
egolm
.
sso
.
service
.
impl
;
import
javax.jws.WebService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Component
;
import
com.egolm.sso.service.MaterialMasterService
;
@Component
@WebService
(
serviceName
=
"MaterialMasterService"
,
targetNamespace
=
"http://service.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.MaterialMasterService"
)
public
class
MaterialMasterServiceImpl
implements
MaterialMasterService
{
@Autowired
JdbcTemplate
jdbcTemplate
;
@Override
public
void
execute
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
}
src/main/java/com/egolm/sso/service/impl/XsipSdServiceImpl.java
deleted
100644 → 0
View file @
d60ca77d
package
com
.
egolm
.
sso
.
service
.
impl
;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
import
org.springframework.stereotype.Component
;
import
com.egolm.sso.service.XsipSdService
;
@Component
@WebService
(
serviceName
=
"XsipSdService"
,
targetNamespace
=
"http://service.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.XsipSdService"
)
public
class
XsipSdServiceImpl
implements
XsipSdService
{
@Override
@WebMethod
public
void
pushMaterialMaster
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
@Override
public
void
pushPriceList
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
@Override
public
void
pushProFormaInvoice
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
@Override
public
void
pushShippingNotfirmation
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
@Override
public
void
pushSoConfirmQuotation
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
@Override
public
void
pushSoDnDeletion
(
String
xml
)
{
System
.
out
.
println
(
xml
);
}
}
src/main/resources/application-dev.properties
deleted
100644 → 0
View file @
d60ca77d
wsUsername
=
test
wsPassword
=
78258c537d6e4d5fb210a57d05619fb6
\ No newline at end of file
src/main/resources/application-dev.yml
0 → 100644
View file @
c08c9937
wsUsername
:
test
wsPassword
:
78258c537d6e4d5fb210a57d05619fb6
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8
username
:
root
password
:
'
egolm#2018'
maxActive
:
20
initialSize
:
1
maxWait
:
60000
minIdle
:
1
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
validationQuery
:
SELECT 1 FROM DUAL
testWhileIdle
:
true
testOnBorrow
:
true
testOnReturn
:
true
poolPreparedStatements
:
true
maxOpenPreparedStatements
:
20
\ No newline at end of file
src/main/resources/application-pro.properties
deleted
100644 → 0
View file @
d60ca77d
wsUsername
=
schneider
wsPassword
=
f14d4a80f823438a875b1924384c944c
\ No newline at end of file
src/main/resources/application-pro.yml
0 → 100644
View file @
c08c9937
wsUsername
:
schneider
wsPassword
:
f14d4a80f823438a875b1924384c944c
spring
:
datasource
:
type
:
com.alibaba.druid.pool.DruidDataSource
driverClassName
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://10.10.0.111:3306/sso?useSSL=false&useUnicode=true&characterEncoding=utf8
username
:
root
password
:
'
egolm#2018'
maxActive
:
20
initialSize
:
1
maxWait
:
60000
minIdle
:
1
timeBetweenEvictionRunsMillis
:
60000
minEvictableIdleTimeMillis
:
300000
validationQuery
:
SELECT 1 FROM DUAL
testWhileIdle
:
true
testOnBorrow
:
true
testOnReturn
:
true
poolPreparedStatements
:
true
maxOpenPreparedStatements
:
20
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment