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