为了简单期间,我从mykong上找了3.X的脚手架工程,可以参考这里。我略作了调整,改成了JDK 1.8.
1 添加依赖
<!-- aop -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.8.9</version>
</depend[......]
在Spring框架3.X中使用AOP
Leave a reply
我这里是以pb2为例,2和3不兼容,但是方法大致相同
1 pom依赖
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<dependency&g[......]
1 基础接入配置
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfiguration extends AbstractWebSocketMessageBrokerConfigurer {
@Override
public void configureMessageBroker(MessageBrokerRegistry config) {
config.e[......]