You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
805 B
26 lines
805 B
7 years ago
|
package org.pqh.config;
|
||
|
|
||
|
import org.pqh.core.config.HibernateConfig;
|
||
|
import org.springframework.context.annotation.*;
|
||
|
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||
|
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
|
||
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
||
|
|
||
|
/**
|
||
|
* Created by reborn on 2017/7/28.
|
||
|
*/
|
||
|
@Configuration
|
||
|
@EnableWebMvc
|
||
|
@EnableAspectJAutoProxy
|
||
|
@PropertySource("classpath:config.properties")
|
||
|
@ComponentScan({"${spring.scan:org.pqh.controller}"})
|
||
|
@Import({HibernateConfig.class,WebCrawlerConfig.class})
|
||
|
public class SpringConfig extends WebMvcConfigurerAdapter{
|
||
|
|
||
|
@Override
|
||
|
public void configureViewResolvers(ViewResolverRegistry registry) {
|
||
|
registry.jsp("/WEB-INF/jsp/",".jsp");
|
||
|
}
|
||
|
|
||
|
}
|