mirror of https://github.com/hykilpikonna/AquaDX
[general & maimai2] Use fixed bean naming
parent
227fdfcd0f
commit
cf2b149925
|
@ -4,17 +4,13 @@ import icu.samnyan.aqua.sega.aimedb.AimeDbServer;
|
|||
import icu.samnyan.aqua.spring.util.AutoChecker;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
|
||||
@SpringBootApplication()
|
||||
@SpringBootApplication
|
||||
public class AquaServerApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
final SpringApplicationBuilder builder = new SpringApplicationBuilder(AquaServerApplication.class);
|
||||
builder.beanNameGenerator(new AquaBeanNameGenerator());
|
||||
|
||||
ConfigurableApplicationContext ctx = builder.run(args);
|
||||
ConfigurableApplicationContext ctx = SpringApplication.run(AquaServerApplication.class, args);
|
||||
|
||||
final AimeDbServer aimeDbServer = ctx.getBean(AimeDbServer.class);
|
||||
aimeDbServer.start();
|
||||
|
|
|
@ -11,7 +11,7 @@ import java.util.Optional;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Repository
|
||||
@Repository("Maimai2UserChargeRepository")
|
||||
public interface UserChargeRepository extends JpaRepository<UserCharge, Long> {
|
||||
List<UserCharge> findByUser_Card_ExtId(Long extId);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import org.springframework.stereotype.Repository;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Repository
|
||||
@Repository("Maimai2UserPlaylogRepository")
|
||||
public interface UserPlaylogRepository extends JpaRepository<UserPlaylog, Long> {
|
||||
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetGameChargeHandler")
|
||||
public class GetGameChargeHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetGameChargeHandler.class);
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetGameEventHandler")
|
||||
public class GetGameEventHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetGameEventHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetGameRankingHandler")
|
||||
public class GetGameRankingHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetGameRankingHandler.class);
|
||||
|
|
|
@ -17,7 +17,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetGameSettingHandler")
|
||||
public class GetGameSettingHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetGameSettingHandler.class);
|
||||
|
|
|
@ -5,7 +5,6 @@ import icu.samnyan.aqua.sega.maimai2.handler.BaseHandler;
|
|||
import icu.samnyan.aqua.sega.util.jackson.StringMapper;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -16,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetGameTournamentInfoHandler")
|
||||
public class GetGameTournamentInfoHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetGameTournamentInfoHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetTransferFriendHandler")
|
||||
public class GetTransferFriendHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetTransferFriendHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserCardHandler")
|
||||
public class GetUserCardHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserDataHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserDataHandler")
|
||||
public class GetUserDataHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserDataHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserExtendHandler")
|
||||
public class GetUserExtendHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserExtendHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserGhostHandler")
|
||||
public class GetUserGhostHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserDataHandler.class);
|
||||
|
|
|
@ -22,7 +22,7 @@ import java.util.*;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserRatingHandler")
|
||||
public class GetUserRatingHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserRatingHandler.class);
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2GetUserRegionHandler")
|
||||
public class GetUserRegionHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(GetUserDataHandler.class);
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2UploadUserPhotoHandler")
|
||||
public class UploadUserPhotoHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UploadUserPhotoHandler.class);
|
||||
|
|
|
@ -19,7 +19,7 @@ import java.util.Optional;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2UploadUserPlaylogHandler")
|
||||
public class UploadUserPlaylogHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UploadUserPlaylogHandler.class);
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2UserLoginHandler")
|
||||
public class UserLoginHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserLoginHandler.class);
|
||||
|
|
|
@ -13,7 +13,7 @@ import java.util.Map;
|
|||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Component
|
||||
@Component("Maimai2UserLogoutHandler")
|
||||
public class UserLogoutHandler implements BaseHandler {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(UserLogoutHandler.class);
|
||||
|
|
Loading…
Reference in New Issue