Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bigsys
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
bigsys
Commits
ce191df9
Commit
ce191df9
authored
Aug 15, 2017
by
fangzhipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成初始化dubbo配置
parent
5da9ebb7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
0 deletions
+77
-0
auth/src/main/webapp/index.jsp
auth/src/main/webapp/index.jsp
+5
-0
redis-util/src/main/java/com/paul/App.java
redis-util/src/main/java/com/paul/App.java
+34
-0
redis-util/src/test/java/com/paul/AppTest.java
redis-util/src/test/java/com/paul/AppTest.java
+38
-0
No files found.
auth/src/main/webapp/index.jsp
0 → 100644
View file @
ce191df9
<html>
<body>
<h2>
Hello World!
</h2>
</body>
</html>
redis-util/src/main/java/com/paul/App.java
0 → 100644
View file @
ce191df9
package
com
.
paul
;
import
com.paul.api.TestService
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
/**
* Hello world!
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
String
paths
[]
=
{
"applicationContext.xml"
};
//这个xml文件是Spring配置beans的文件,顺带一提,路径 在整个应用的根目录
ApplicationContext
ctx
=
new
ClassPathXmlApplicationContext
(
paths
);
TestService
testService
=
ctx
.
getBean
(
TestService
.
class
);
System
.
out
.
println
(
testService
.
sayHello
(
"fzp"
));
new
Thread
(){
@Override
public
void
run
()
{
while
(
true
)
{
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
}
}
}.
start
();
System
.
out
.
println
(
"启动spring 服务启动完毕"
);
}
}
redis-util/src/test/java/com/paul/AppTest.java
0 → 100644
View file @
ce191df9
package
com
.
paul
;
import
junit.framework.Test
;
import
junit.framework.TestCase
;
import
junit.framework.TestSuite
;
/**
* Unit test for simple App.
*/
public
class
AppTest
extends
TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public
AppTest
(
String
testName
)
{
super
(
testName
);
}
/**
* @return the suite of tests being tested
*/
public
static
Test
suite
()
{
return
new
TestSuite
(
AppTest
.
class
);
}
/**
* Rigourous Test :-)
*/
public
void
testApp
()
{
assertTrue
(
true
);
}
}
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