Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
smileNicky
taoshop
提交
c2b2c163
T
taoshop
项目概览
smileNicky
/
taoshop
通知
4
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
2
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
T
taoshop
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c2b2c163
编写于
6月 16, 2018
作者:
N
Nicky
提交者:
u014427391
6月 16, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
开启springBoot热部署
上级
c4614c78
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
46 addition
and
43 deletion
+46
-43
src/pom.xml
src/pom.xml
+10
-4
src/taoshop-common/taoshop-common-core/pom.xml
src/taoshop-common/taoshop-common-core/pom.xml
+1
-37
src/taoshop-common/taoshop-common-core/src/main/java/com/muses/taoshop/common/core/base/config/WebConfig.java
.../com/muses/taoshop/common/core/base/config/WebConfig.java
+21
-0
src/taoshop-portal/pom.xml
src/taoshop-portal/pom.xml
+13
-1
src/taoshop-portal/src/main/java/com/muses/taoshop/portal/Application.java
...l/src/main/java/com/muses/taoshop/portal/Application.java
+1
-1
未找到文件。
src/pom.xml
浏览文件 @
c2b2c163
...
...
@@ -71,6 +71,15 @@
</configuration>
</plugin>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<fork>
true
</fork>
<addResources>
true
</addResources>
</configuration>
</plugin>
</plugins>
</build>
...
...
@@ -100,13 +109,10 @@
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
provided
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
<!-- alibaba druid -->
<dependency>
...
...
src/taoshop-common/taoshop-common-core/pom.xml
浏览文件 @
c2b2c163
...
...
@@ -17,8 +17,6 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1.7
</maven.compiler.source>
<maven.compiler.target>
1.7
</maven.compiler.target>
</properties>
<dependencies>
...
...
@@ -30,39 +28,5 @@
</dependency>
</dependencies>
<build>
<pluginManagement>
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<artifactId>
maven-clean-plugin
</artifactId>
<version>
3.0.0
</version>
</plugin>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
3.0.2
</version>
</plugin>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.7.0
</version>
</plugin>
<plugin>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.20.1
</version>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<version>
3.0.2
</version>
</plugin>
<plugin>
<artifactId>
maven-install-plugin
</artifactId>
<version>
2.5.2
</version>
</plugin>
<plugin>
<artifactId>
maven-deploy-plugin
</artifactId>
<version>
2.8.2
</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
src/taoshop-common/taoshop-common-core/src/main/java/com/muses/taoshop/common/core/base/config/WebConfig.java
0 → 100644
浏览文件 @
c2b2c163
package
com.muses.taoshop.common.core.base.config
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.web.servlet.config.annotation.EnableWebMvc
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
@EnableWebMvc
@Configuration
public
class
WebConfig
extends
WebMvcConfigurerAdapter
{
@Override
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
registry
.
addResourceHandler
(
"/templates/**"
).
addResourceLocations
(
ResourceUtils
.
CLASSPATH_URL_PREFIX
+
"/templates/"
);
registry
.
addResourceHandler
(
"/static/**"
).
addResourceLocations
(
ResourceUtils
.
CLASSPATH_URL_PREFIX
+
"/static/"
);
super
.
addResourceHandlers
(
registry
);
}
}
\ No newline at end of file
src/taoshop-portal/pom.xml
浏览文件 @
c2b2c163
...
...
@@ -24,13 +24,23 @@
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<scope>
provided
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
com.muses.taoshop.provider
</groupId>
<artifactId>
taoshop-provider-item
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-thymeleaf
</artifactId>
</dependency>
<!-- poi start-->
<dependency>
...
...
@@ -59,6 +69,7 @@
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
<fork>
true
</fork>
<compilerVersion>
1.8
</compilerVersion>
<encoding>
UTF-8
</encoding>
<skipMain></skipMain>
...
...
@@ -77,4 +88,5 @@
</plugins>
</build>
</project>
src/taoshop-portal/src/main/java/com/muses/taoshop/portal/Application.java
浏览文件 @
c2b2c163
...
...
@@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.*;
@EnableTransactionManagement
//@EnableCaching
@EnableAsync
//@EnableAutoConfiguration
@EnableAutoConfiguration
//TODO 修改该注解可以实现自动部署
@SpringBootApplication
(
exclude
={
DataSourceAutoConfiguration
.
class
,
DataSourceTransactionManagerAutoConfiguration
.
class
,
MybatisAutoConfiguration
.
class
})
public
class
Application
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录