Signed-off-by: James Munson <jmunson@openpoll.io>
This commit is contained in:
James Munson
2019-06-24 04:45:03 -07:00
parent b0c884eda1
commit 1754508b26
2 changed files with 45 additions and 45 deletions

View File

@@ -42,7 +42,7 @@ import org.springframework.web.bind.annotation.RestController;
public class XteaController
{
@Autowired
private XteaService xteaService;
private XteaEndpoint xteaService;
@RequestMapping(method = POST)
public void submit(@RequestBody XteaRequest xteaRequest)

View File

@@ -37,7 +37,7 @@ import org.sql2o.Query;
import org.sql2o.Sql2o;
@Service
public class XteaService
public class XteaEndpoint
{
private static final String CREATE_SQL = "CREATE TABLE IF NOT EXISTS `xtea` (\n"
+ " `id` int(11) NOT NULL AUTO_INCREMENT,\n"
@@ -59,7 +59,7 @@ public class XteaService
.build();
@Autowired
public XteaService(
public XteaEndpoint(
@Qualifier("Runelite SQL2O") Sql2o sql2o
)
{