Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
Overview
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
reyun
manager
Commits
c9156385
Commit
c9156385
authored
Jan 03, 2018
by
zhangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置修改
parent
95a69464
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
82 deletions
+64
-82
.gitignore
.gitignore
+5
-0
workspace.xml
.idea/workspace.xml
+0
-0
Test.java
lib/Test.java
+0
-5
pom.xml
pom.xml
+50
-63
LoginController.java
src/main/java/common/controller/LoginController.java
+0
-2
redis.properties
src/main/resources/redis.properties
+2
-2
applicationContext-schedule.xml
src/main/resources/spring/applicationContext-schedule.xml
+0
-0
applicationContext.xml
src/main/resources/spring/applicationContext.xml
+6
-9
web.xml
src/main/webapp/WEB-INF/web.xml
+1
-1
No files found.
.gitignore
View file @
c9156385
...
...
@@ -26,3 +26,7 @@ Gruntfile.js
coverage-report
/src/main/websrc/.DS_Store
manager.iml
manage.iml
target
\ No newline at end of file
.idea/workspace.xml
View file @
c9156385
This diff is collapsed.
Click to expand it.
lib/Test.java
deleted
100644 → 0
View file @
95a69464
/**
* Created by mxq on 2018/1/2.
*/
public
class
Test
{
}
pom.xml
View file @
c9156385
...
...
@@ -211,36 +211,6 @@
<groupId>
org.springframework.data
</groupId>
<artifactId>
spring-data-jpa
</artifactId>
<version>
1.3.2.RELEASE
</version>
<exclusions>
<exclusion>
<artifactId>
spring-aop
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-core
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-tx
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-context
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
jcl-over-slf4j
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
@@ -278,6 +248,14 @@
<artifactId>
spring-beans
</artifactId>
<groupId>
org.springframework
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
jcl-over-slf4j
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- spring end -->
...
...
@@ -492,6 +470,14 @@
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-beanutils
</artifactId>
<groupId>
commons-beanutils
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-collections
</artifactId>
<groupId>
commons-collections
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
...
...
@@ -570,6 +556,10 @@
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
<exclusion>
<artifactId>
joda-time
</artifactId>
<groupId>
joda-time
</groupId>
</exclusion>
</exclusions>
</dependency>
...
...
@@ -683,11 +673,31 @@
<groupId>
com.google.api-ads
</groupId>
<artifactId>
ads-lib
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
guice
</artifactId>
<groupId>
com.google.inject
</groupId>
</exclusion>
<exclusion>
<artifactId>
slf4j-api
</artifactId>
<groupId>
org.slf4j
</groupId>
</exclusion>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.google.api-ads
</groupId>
<artifactId>
adwords-axis
</artifactId>
<version>
3.9.0
</version>
<exclusions>
<exclusion>
<artifactId>
commons-logging
</artifactId>
<groupId>
commons-logging
</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Third party dependencies -->
...
...
@@ -695,6 +705,16 @@
<groupId>
com.google.http-client
</groupId>
<artifactId>
google-http-client-jackson2
</artifactId>
<version>
1.22.0
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
<exclusion>
<artifactId>
httpclient
</artifactId>
<groupId>
org.apache.httpcomponents
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.beust
</groupId>
...
...
@@ -755,39 +775,6 @@
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.6
</version>
<configuration>
<webResources>
<resource>
<directory>
${pom.basedir}/lib
</directory>
<targetPath>
WEB-INF/lib
</targetPath>
<filtering>
false
</filtering>
<includes>
<include>
**/*.jar
</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
compile
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
src/main/webapp
</outputDirectory>
<resources>
<resource>
<directory>
${project.basedir}/dist
</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
...
...
src/main/java/common/controller/LoginController.java
View file @
c9156385
...
...
@@ -2,7 +2,6 @@ package common.controller;
import
com.sun.corba.se.spi.ior.ObjectKey
;
import
common.model.User
;
import
common.repository.RoleRepository
;
...
...
@@ -17,7 +16,6 @@ import security.RedisLoginStatusManager;
import
security.TokenManager
;
import
security.annotation.CurrentAccount
;
import
security.interceptor.AuthorizationInterceptor
;
import
util.*
;
import
javax.servlet.http.Cookie
;
...
...
src/main/resources/redis.properties
View file @
c9156385
...
...
@@ -6,8 +6,8 @@ redis.maxIdle=300
redis.testOnBorrow
=
true
# token
redis.
s
url.host
=
${redis.surl.host}
redis.
s
url.port
=
${redis.surl.port}
redis.
S
url.host
=
${redis.surl.host}
redis.
S
url.port
=
${redis.surl.port}
# event
redis.event.host
=
${redis.event.host}
...
...
src/main/resources/applicationContext-schedule.xml
→
src/main/resources/
spring/
applicationContext-schedule.xml
View file @
c9156385
File moved
src/main/resources/applicationContext.xml
→
src/main/resources/
spring/
applicationContext.xml
View file @
c9156385
...
...
@@ -2,15 +2,13 @@
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:jdbc=
"http://www.springframework.org/schema/jdbc"
xmlns:jee=
"http://www.springframework.org/schema/jee"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xmlns:jpa=
"http://www.springframework.org/schema/data/jpa"
xmlns:
task=
"http://www.springframework.org/schema/task"
xmlns:
p=
"http://www.springframework.org/schema/p"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xsi:schemaLocation=
"http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"
default-lazy-init=
"true"
>
...
...
@@ -25,8 +23,7 @@
<context:component-scan
base-package=
"dmp"
/>
<context:component-scan
base-package=
"security"
/>
<context:property-placeholder
location=
"classpath:persistence.properties"
/>
<context:property-placeholder
location=
"classpath:redis.properties"
/>
<context:property-placeholder
location=
"classpath:persistence.properties,classpath:redis.properties"
/>
<!--Redis配置-->
<bean
id=
"poolConfig"
class=
"redis.clients.jedis.JedisPoolConfig"
>
...
...
@@ -36,7 +33,7 @@
<property
name=
"testOnBorrow"
value=
"true"
/>
</bean>
<bean
id=
"connectionFactory"
class=
"org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:hostName=
"${redis.
surl.host}"
p:port=
"${redis.s
url.port}"
p:poolConfig-ref=
"poolConfig"
/>
<bean
id=
"connectionFactory"
class=
"org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
p:hostName=
"${redis.
Surl.host}"
p:port=
"${redis.S
url.port}"
p:poolConfig-ref=
"poolConfig"
/>
<bean
id=
"redisTemplate"
class=
"org.springframework.data.redis.core.StringRedisTemplate"
>
<property
name=
"connectionFactory"
ref=
"connectionFactory"
/>
...
...
src/main/webapp/WEB-INF/web.xml
View file @
c9156385
...
...
@@ -33,7 +33,7 @@
</context-param>
<context-param>
<param-name>
contextConfigLocation
</param-name>
<param-value>
classpath:/applicationContext*.xml
</param-value>
<param-value>
classpath:/
spring/
applicationContext*.xml
</param-value>
</context-param>
<servlet>
...
...
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