Commit a5ab4c76 authored by 赵啸非's avatar 赵啸非

修改文件存储路径

parent 6fcdc784
...@@ -17,11 +17,7 @@ module.exports = { ...@@ -17,11 +17,7 @@ module.exports = {
hot: true,//自动保存 hot: true,//自动保存
proxy: { proxy: {
'/m': { '/m': {
<<<<<<< HEAD
target: 'http://192.168.0.98:11078', target: 'http://192.168.0.98:11078',
=======
target: 'http://localhost:18222',
>>>>>>> ad2b523910bb4a6a40f0558c71647fb6ec299e09
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
cookieDomainRewrite: 'plm.testnew.com', cookieDomainRewrite: 'plm.testnew.com',
......
...@@ -18,34 +18,34 @@ import org.springframework.context.annotation.Configuration; ...@@ -18,34 +18,34 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
public class RabbitConfig { public class RabbitConfig {
// @Autowired @Autowired
// private SimpleDynamicListener simpleDynamicListener; private SimpleDynamicListener simpleDynamicListener;
//
// //@Bean("simpleMessageListenerContainer") //@Bean("simpleMessageListenerContainer")
// public SimpleMessageListenerContainer simpleMessageListenerContainer(CachingConnectionFactory cachingConnectionFactory) { public SimpleMessageListenerContainer simpleMessageListenerContainer(CachingConnectionFactory cachingConnectionFactory) {
// SimpleMessageListenerContainer container = new SimpleMessageListenerContainer(cachingConnectionFactory); SimpleMessageListenerContainer container = new SimpleMessageListenerContainer(cachingConnectionFactory);
// container.setAcknowledgeMode(AcknowledgeMode.MANUAL); container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
// container.setConcurrentConsumers(10); container.setConcurrentConsumers(10);
// container.setMaxConcurrentConsumers(100); container.setMaxConcurrentConsumers(100);
// container.setMessageListener(simpleDynamicListener);//配置队列监听器 container.setMessageListener(simpleDynamicListener);//配置队列监听器
// container.start(); container.start();
// return container; return container;
// } }
// @Bean(name = "consumerBatchContainerFactory") @Bean(name = "consumerBatchContainerFactory")
// public SimpleRabbitListenerContainerFactory consumerBatchContainerFactory( public SimpleRabbitListenerContainerFactory consumerBatchContainerFactory(
// SimpleRabbitListenerContainerFactoryConfigurer configurer, ConnectionFactory connectionFactory) { SimpleRabbitListenerContainerFactoryConfigurer configurer, ConnectionFactory connectionFactory) {
// // 创建 SimpleRabbitListenerContainerFactory 对象 // 创建 SimpleRabbitListenerContainerFactory 对象
// SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory(); SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory();
// configurer.configure(factory, connectionFactory); configurer.configure(factory, connectionFactory);
// // 额外添加批量消费的属性 // 额外添加批量消费的属性
// factory.setBatchListener(true); factory.setBatchListener(true);
// factory.setBatchSize(20); factory.setBatchSize(20);
// factory.setReceiveTimeout(5 * 1000L); factory.setReceiveTimeout(5 * 1000L);
// factory.setConsumerBatchEnabled(true); factory.setConsumerBatchEnabled(true);
// return factory; return factory;
// } }
//修改系列和与反序列化转换器 //修改系列和与反序列化转换器
@Bean @Bean
...@@ -54,12 +54,12 @@ public class RabbitConfig { ...@@ -54,12 +54,12 @@ public class RabbitConfig {
} }
// @Bean @Bean
// public AsyncRabbitTemplate asyncRabbitTemplate(RabbitTemplate rabbitTemplate) { public AsyncRabbitTemplate asyncRabbitTemplate(RabbitTemplate rabbitTemplate) {
// AsyncRabbitTemplate asyncRabbitTemplate = new AsyncRabbitTemplate(rabbitTemplate); AsyncRabbitTemplate asyncRabbitTemplate = new AsyncRabbitTemplate(rabbitTemplate);
// asyncRabbitTemplate.setReceiveTimeout(10000); asyncRabbitTemplate.setReceiveTimeout(10000);
// return asyncRabbitTemplate; return asyncRabbitTemplate;
// } }
} }
...@@ -12,7 +12,7 @@ import com.mortals.framework.exception.AppException; ...@@ -12,7 +12,7 @@ import com.mortals.framework.exception.AppException;
/** /**
* 统一异常处理 * 统一异常处理
*/ */
//@ControllerAdvice @ControllerAdvice
public class ExceptionHandle { public class ExceptionHandle {
private final static Logger log = LoggerFactory.getLogger(ExceptionHandle.class); private final static Logger log = LoggerFactory.getLogger(ExceptionHandle.class);
......
...@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service; ...@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* @description: * @description:
**/ **/
@Slf4j @Slf4j
//@Service @Service
public class SimpleDynamicListener implements ChannelAwareMessageListener { public class SimpleDynamicListener implements ChannelAwareMessageListener {
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment